]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: properly handle multiple AQ messages
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 17 Oct 2014 03:14:42 +0000 (03:14 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 3 Nov 2014 09:23:24 +0000 (01:23 -0800)
commit6d3e316cbfe1e0cbb0f4f9afa55fa29fb45ae139
tree04413ba1caa42cb629af3f66319675c1e94ef844
parentadd871d9eef5c9657aa5140e5e606af131537a82
i40evf: properly handle multiple AQ messages

When we receive an admin queue message, the msg_size field in the event
struct gets overwritten. Because of this, we need to reinit the field
each time we go through the loop. Without this we may receive truncated
messages due to the firmware thinking we have insufficient buffer size.

Change-ID: I21dcca5114d91365d731169965ce3ffec0e4a190
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Patrick Lu <patrick.lu@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c