提交 a3013405 编写于 作者: G Greg Rose 提交者: Jeff Kirsher

ixgbe: Fix return value from macvlan filter function

The function to set the macvlan filter should return success or failure
instead of the index of the filter.  The message processing function was
misinterpreting the index as a non-zero return code indicating failure and
NACKing MAC filter set messages that actually succeeded.
Signed-off-by: NGreg Rose <gregory.v.rose@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 d7bbcd32
...@@ -742,7 +742,8 @@ static int ixgbe_set_vf_macvlan_msg(struct ixgbe_adapter *adapter, ...@@ -742,7 +742,8 @@ static int ixgbe_set_vf_macvlan_msg(struct ixgbe_adapter *adapter,
e_warn(drv, e_warn(drv,
"VF %d has requested a MACVLAN filter but there is no space for it\n", "VF %d has requested a MACVLAN filter but there is no space for it\n",
vf); vf);
return err;
return err < 0;
} }
static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter, static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册