diff options
author | Kumar Sanghvi | 2017-10-18 17:19:11 +0200 |
---|---|---|
committer | David S. Miller | 2017-10-20 14:06:53 +0200 |
commit | 3bdb376e6944134d0f4d6d65497054a54ef273c9 (patch) | |
tree | 5b932b9551c690062f85d2b5d5c1fbd50f257e1c /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | cxgb4: add tc flower support for ETH-DMAC rewrite (diff) | |
download | kernel-qcow2-linux-3bdb376e6944134d0f4d6d65497054a54ef273c9.tar.gz kernel-qcow2-linux-3bdb376e6944134d0f4d6d65497054a54ef273c9.tar.xz kernel-qcow2-linux-3bdb376e6944134d0f4d6d65497054a54ef273c9.zip |
cxgb4: introduce SMT ops to prepare for SMAC rewrite support
Introduce SMT operations for allocating/removing entries from
SMAC table. Make TCAM filters use the SMT ops whenever SMAC rewrite
is required.
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, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index 4eaca05ebd3a..f7aa3516bf12 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -858,6 +858,7 @@ struct adapter { unsigned int clipt_start; unsigned int clipt_end; struct clip_tbl *clipt; + struct smt_data *smt; struct cxgb4_uld_info *uld; void *uld_handle[CXGB4_ULD_MAX]; unsigned int num_uld; @@ -1098,9 +1099,9 @@ struct filter_entry { u32 locked:1; /* filter is administratively locked */ u32 pending:1; /* filter action is pending firmware reply */ - u32 smtidx:8; /* Source MAC Table index for smac */ struct filter_ctx *ctx; /* Caller's completion hook */ struct l2t_entry *l2t; /* Layer Two Table entry for dmac */ + struct smt_entry *smt; /* Source Mac Table entry for smac */ struct net_device *dev; /* Associated net device */ u32 tid; /* This will store the actual tid */ |