diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-12-17 13:45:08 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-17 15:51:04 -0500 |
commit | f7502659cec8f2165805e967e113c0894b931181 (patch) | |
tree | 5e5439eaa43db263555406d432bb496eae3e8dd6 /drivers/net/ethernet/chelsio/cxgb4/l2t.h | |
parent | e41e282428ee897b8817049e6ee0b7d5c9caf005 (diff) | |
download | blackbird-obmc-linux-f7502659cec8f2165805e967e113c0894b931181.tar.gz blackbird-obmc-linux-f7502659cec8f2165805e967e113c0894b931181.zip |
cxgb4: Add API to alloc l2t entry; also update existing ones
Based on original work by Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/l2t.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/l2t.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.h b/drivers/net/ethernet/chelsio/cxgb4/l2t.h index b38dc526aad5..17803a871ae2 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/l2t.h +++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.h @@ -114,10 +114,11 @@ struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, unsigned int priority); u64 cxgb4_select_ntuple(struct net_device *dev, const struct l2t_entry *l2t); +struct l2t_entry *cxgb4_l2t_alloc_switching(struct net_device *dev, u16 vlan, + u8 port, u8 *dmac); void t4_l2t_update(struct adapter *adap, struct neighbour *neigh); -struct l2t_entry *t4_l2t_alloc_switching(struct l2t_data *d); -int t4_l2t_set_switching(struct adapter *adap, struct l2t_entry *e, u16 vlan, - u8 port, u8 *eth_addr); +struct l2t_entry *t4_l2t_alloc_switching(struct adapter *adap, u16 vlan, + u8 port, u8 *dmac); struct l2t_data *t4_init_l2t(unsigned int l2t_start, unsigned int l2t_end); void do_l2t_write_rpl(struct adapter *p, const struct cpl_l2t_write_rpl *rpl); |