diff options
author | Hariprasad Shenai | 2015-06-05 10:54:47 +0200 |
---|---|---|
committer | David S. Miller | 2015-06-06 06:25:55 +0200 |
commit | 4f3a0fcfb64b107bfbec0779a02438b321cc5dcf (patch) | |
tree | 826277d1619e36b37f2855db37932a0dd58540f9 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | Merge branch 'mlx5-next' (diff) | |
download | kernel-qcow2-linux-4f3a0fcfb64b107bfbec0779a02438b321cc5dcf.tar.gz kernel-qcow2-linux-4f3a0fcfb64b107bfbec0779a02438b321cc5dcf.tar.xz kernel-qcow2-linux-4f3a0fcfb64b107bfbec0779a02438b321cc5dcf.zip |
cxgb4: Free Virtual Interfaces in remove routine
Free VI interfaces in remove routine. If we don't do this then the
firmware will never drop the physical link to the peer.
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/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 bf2b822d0e8e..93e6cbc3b4a8 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -1378,6 +1378,9 @@ int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port, unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac, unsigned int *rss_size); +int t4_free_vi(struct adapter *adap, unsigned int mbox, + unsigned int pf, unsigned int vf, + unsigned int viid); int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid, int mtu, int promisc, int all_multi, int bcast, int vlanex, bool sleep_ok); |