net: tc_act: add skbedit_ptype helper functions
authorJohn Hurley <john.hurley@netronome.com>
Sun, 4 Aug 2019 15:09:03 +0000 (16:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 21:24:21 +0000 (14:24 -0700)
commit77feb4eed7560215a724df6e7d4f1beaf98ba49d
tree4db7ea9c5f519bcfec59bbfd47310f1701eca08b
parent55a47dc2691b2851152d3ad2f2792dde52db972e
net: tc_act: add skbedit_ptype helper functions

The tc_act header file contains an inline function that checks if an
action is changing the skb mark of a packet and a further function to
extract the mark.

Add similar functions to check for and get skbedit actions that modify
the packet type of the skb.

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>
include/net/tc_act/tc_skbedit.h