OSDN Git Service

nfp: flower: offload MPLS pop action
authorJohn Hurley <john.hurley@netronome.com>
Tue, 23 Jul 2019 14:34:01 +0000 (15:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:52:51 +0000 (13:52 -0700)
commit35b7c70cc3b82c159c181f297a54d4bea6f4fd47
treed15a5b5987d799d5b08d3a4b94d4041deeec777c
parenta6eb1817fb9860cbd630ceb05dae0491993bfd85
nfp: flower: offload MPLS pop action

Recent additions to the kernel include a TC action module to manipulate
MPLS headers on packets. Such actions are available to offload via the
flow_offload intermediate representation API.

Modify the NFP driver to allow the offload of MPLS pop actions to
firmware. The act_mpls TC module enforces that the next protocol is
supplied along with the pop action. Passing this to firmware allows it
to properly rebuild the underlying packet after the pop.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/action.c
drivers/net/ethernet/netronome/nfp/flower/cmsg.h