diff options
author | Govindarajulu Varadarajan <gvaradar@cisco.com> | 2018-03-01 22:07:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-05 02:19:26 +0300 |
commit | 5de0c022f1b0bce073cb04dd69ed7982805e5763 (patch) | |
tree | f2e7863fcabba6996531dab1842291065a353c9e /drivers/net/ethernet/cisco/enic/enic_main.c | |
parent | e8588e268509292550634d9a35f2723a207683b2 (diff) | |
download | linux-5de0c022f1b0bce073cb04dd69ed7982805e5763.tar.xz |
enic: set IG desc cache flag in open
New adapter needs CMD_OPENF_IG_DESCCACHE flag to be set. If this flag is
not set, fw flushes the global IG desc cache. This flag is nop in older
adapter.
Also increment driver version
Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/enic_main.c')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index 243d5c5fd5e3..a25fb95492a0 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c @@ -2196,9 +2196,10 @@ static int enic_dev_wait(struct vnic_dev *vdev, static int enic_dev_open(struct enic *enic) { int err; + u32 flags = CMD_OPENF_IG_DESCCACHE; err = enic_dev_wait(enic->vdev, vnic_dev_open, - vnic_dev_open_done, 0); + vnic_dev_open_done, flags); if (err) dev_err(enic_get_dev(enic), "vNIC device open failed, err %d\n", err); |