diff options
author | Kumar Sanghvi <kumaras@chelsio.com> | 2017-10-18 20:49:14 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-20 13:06:53 +0100 |
commit | 557ccbf9dfa8de133b9247af42f0c5760bb103f0 (patch) | |
tree | 28d70afc469d5d12e24daf260610b2d88f957351 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | 0ff909946155ed1af2ec8feed3c1bac485201683 (diff) | |
download | op-kernel-dev-557ccbf9dfa8de133b9247af42f0c5760bb103f0.zip op-kernel-dev-557ccbf9dfa8de133b9247af42f0c5760bb103f0.tar.gz |
cxgb4: add tc flower support for L3/L4 rewrite
Adds support to rewrite L3/L4 fields via TC-PEDIT action.
Supported fields for rewrite are:
IPv4 src/dst address, IPv6 src/dst address, TCP/UDP sport/dport.
Also, process match fields first and then process the action items.
Refactor pedit action validation to separate function to avoid
excessive code indentation.
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index 6a1c0b1..92a0b02 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -1097,6 +1097,10 @@ enum { VLAN_REWRITE }; +enum { + NAT_MODE_ALL = 7, /* NAT on entire 4-tuple */ +}; + /* Host shadow copy of ingress filter entry. This is in host native format * and doesn't match the ordering or bit order, etc. of the hardware of the * firmware command. The use of bit-field structure elements is purely to |