]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6000f5afbc3c14eb3156a841c667caecf986f59
treed15a5b5987d799d5b08d3a4b94d4041deeec777c
parentc8452e729109d68c52e821f7bad132aa0b717e33
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