net/fm10k: fix promiscuous receive for VF
authorXiao Wang <xiao.w.wang@intel.com>
Mon, 6 Jun 2016 09:00:47 +0000 (17:00 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:53 +0000 (17:21 +0200)
commit2d2d6e37209fce3d78c0ea032ab6ecb7064afa03
treeaea1e43ed12218d8bccf9d8c6ff0472e081ee2e6
parent5fdb4ada1c97ce9399dfb0a8d4d14fbbf1bf1dc8
net/fm10k: fix promiscuous receive for VF

When app tries to change promisc/allmulti setting, fm10k will check if a
valid glort is acquired, and exit without doing anything if not.

For VFs, this glort value is not necessary, and so the check can be
removed. This saves having unnecessary failures of the API call, as well as
saving the time taken for the mailbox communication between VF and PF in
the case when the glort check passes.

Fixes: df02ba864695 ("fm10k: support promiscuous mode")

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_ethdev.c