summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorKumar Sanghvi2017-10-18 17:19:14 +0200
committerDavid S. Miller2017-10-20 14:06:53 +0200
commit557ccbf9dfa8de133b9247af42f0c5760bb103f0 (patch)
tree28d70afc469d5d12e24daf260610b2d88f957351 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentcxgb4: introduce fw_filter2_wr to prepare for L3/L4 rewrite support (diff)
downloadkernel-qcow2-linux-557ccbf9dfa8de133b9247af42f0c5760bb103f0.tar.gz
kernel-qcow2-linux-557ccbf9dfa8de133b9247af42f0c5760bb103f0.tar.xz
kernel-qcow2-linux-557ccbf9dfa8de133b9247af42f0c5760bb103f0.zip
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.h4
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 6a1c0b1fe8d0..92a0b022687e 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