]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: fix endian-ness for RSS
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 12:51:58 +0000 (08:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Aug 2022 10:26:19 +0000 (11:26 +0100)
commite743252801c8df2185a93bd3f5fb017213a033b5
tree044dfa8c006ba118a5cf5ceaeb90078733891091
parent60ea5d986be5cbc11fc2b72ec2b7cdd078319ee1
virtio_net: fix endian-ness for RSS

Using native endian-ness for device supplied fields is wrong
on BE platforms. Sparse warns about this.

Fixes: 7deccc28be9e ("drivers/net/virtio_net: Added RSS hash report.")
Cc: "Andrew Melnychenko" <andrew@daynix.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c