aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/jme.h
diff options
context:
space:
mode:
authorNetanel Belgazal <netanel@amazon.com>2018-09-09 08:15:21 +0000
committerDavid S. Miller <davem@davemloft.net>2018-09-09 07:59:55 -0700
commitef5b0771d247379c90c8bf1332ff32f7f74bff7f (patch)
treeb5d8610f6a4dd013bfbd5452a62eb8660f8f17da /drivers/net/ethernet/jme.h
parentnet: ena: fix surprise unplug NULL dereference kernel crash (diff)
downloadlinux-dev-ef5b0771d247379c90c8bf1332ff32f7f74bff7f.tar.xz
linux-dev-ef5b0771d247379c90c8bf1332ff32f7f74bff7f.zip
net: ena: fix driver when PAGE_SIZE == 64kB
The buffer length field in the ena rx descriptor is 16 bit, and the current driver passes a full page in each ena rx descriptor. When PAGE_SIZE equals 64kB or more, the buffer length field becomes zero. To solve this issue, limit the ena Rx descriptor to use 16kB even when allocating 64kB kernel pages. This change would not impact ena device functionality, as 16kB is still larger than maximum MTU. Signed-off-by: Netanel Belgazal <netanel@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/jme.h')
0 files changed, 0 insertions, 0 deletions