nfp: flower: offload MPLS set action
authorJohn Hurley <john.hurley@netronome.com>
Tue, 23 Jul 2019 14:34:02 +0000 (15:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 20:52:51 +0000 (13:52 -0700)
commite03e47a3dcecfa56420328b339f143a17499b414
tree31e523fa0fc8672efaa3367d688237f5a5717c92
parent35b7c70cc3b82c159c181f297a54d4bea6f4fd47
nfp: flower: offload MPLS set 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 set actions to
firmware. Set actions update the outermost MPLS header. The offload
includes a mask to specify which fields should be set.

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