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)
commit7bdd6f74876e1bf4fc9849fe872000ecc944e71d
tree04413ba1caa42cb629af3f66319675c1e94ef844
parent1790ed0c65c114b6d262963bb054526697728815
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