]> 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)
commit3ed3798fda73095b34e96e1c49f27a86f0e155c2
treed15a5b5987d799d5b08d3a4b94d4041deeec777c
parent95f26ca1a4f4d3cfc7fe6ab41de05c9ce1583586
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