]> 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)
commit1e718493b6cde09579d1e6fffa6e3feaa51df511
tree04413ba1caa42cb629af3f66319675c1e94ef844
parentd042bbf4a7efbd3ab87de274cd6b2c5dd1cfcdd9
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