Paul Durrant 912e27e85e xen-netback: make sure that hashes are not send to unaware frontends
In the case when a frontend only negotiates a single queue with xen-
netback it is possible for a skbuff with a s/w hash to result in a
hash extra_info segment being sent to the frontend even when no hash
algorithm has been configured. (The ndo_select_queue() entry point makes
sure the hash is not set if no algorithm is configured, but this entry
point is not called when there is only a single queue). This can result
in a frontend that is unable to handle extra_info segments being given
such a segment, causing it to crash.

This patch fixes the problem by clearing the hash in ndo_start_xmit()
instead, which is clearly guaranteed to be called irrespective of the
number of queues.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-07 23:52:33 -04:00
..
2016-09-30 01:26:00 -04:00
2016-08-15 11:57:55 -07:00
2016-09-24 09:36:12 -04:00
2016-09-19 01:25:22 -04:00
2016-08-31 14:33:09 -07:00
2016-09-20 22:55:23 -04:00
2016-09-09 16:52:43 -07:00
2016-08-30 22:27:18 -07:00
2016-09-17 10:05:05 -04:00