diff options
author | Kumar Sanghvi | 2017-09-21 20:11:14 +0200 |
---|---|---|
committer | David S. Miller | 2017-09-23 06:28:01 +0200 |
commit | 62488e4b53ae02d82ac000f91ec82b5cfb41d6f2 (patch) | |
tree | 591ae311ee37cf438b3b64301a412f8c5f59027a /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | cxgb4: add tc flower offload skeleton (diff) | |
download | kernel-qcow2-linux-62488e4b53ae02d82ac000f91ec82b5cfb41d6f2.tar.gz kernel-qcow2-linux-62488e4b53ae02d82ac000f91ec82b5cfb41d6f2.tar.xz kernel-qcow2-linux-62488e4b53ae02d82ac000f91ec82b5cfb41d6f2.zip |
cxgb4: add basic tc flower offload support
Add support to add/remove flows for offload. Following match
and action are supported for offloading a flow:
Match: ether-protocol, IPv4/IPv6 addresses, L4 ports (TCP/UDP)
Action: drop, redirect to another port on the device.
The qualifying flows can have accompanying mask information.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index c4e997fdff64..d05721b06178 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -905,6 +905,9 @@ struct adapter { /* TC u32 offload */ struct cxgb4_tc_u32_table *tc_u32; struct chcr_stats_debug chcr_stats; + + /* TC flower offload */ + DECLARE_HASHTABLE(flower_anymatch_tbl, 9); }; /* Support for "sched-class" command to allow a TX Scheduling Class to be |