diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2018-01-24 18:14:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-24 18:48:25 +0300 |
commit | 9d5fd927d20b38d9785f510b93b3f0f8e19aba5f (patch) | |
tree | f76e3012dd0c0fdd0eb8852c85451287795f0eab /drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | |
parent | 43df215d99e6049d4680309c54232689e16ddd6b (diff) | |
download | linux-9d5fd927d20b38d9785f510b93b3f0f8e19aba5f.tar.xz |
cxgb4/cxgb4vf: add support for ndo_set_vf_vlan
implement ndo_set_vf_vlan for mgmt netdevice to configure
the PCIe VF.
Original work by: Casey Leedom <leedom@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/cxgb4vf/cxgb4vf_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c index 96f69f80dc99..b7e79e64d2ed 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c @@ -791,6 +791,8 @@ static int cxgb4vf_open(struct net_device *dev) if (err) goto err_unwind; + pi->vlan_id = t4vf_get_vf_vlan_acl(adapter); + netif_tx_start_all_queues(dev); set_bit(pi->port_id, &adapter->open_device_map); return 0; |