OSDN Git Service

net: ena: add support for changing max_header_size in LLQ mode
authorSameeh Jubran <sameehj@amazon.com>
Mon, 3 Jun 2019 14:43:26 +0000 (17:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 20:30:38 +0000 (13:30 -0700)
commitcdf449eccc5946d5dd4145b38347874a7423c50d
tree4bdf694ed86cd5b10c2858e6e44542467f66fca2
parenta4e262cde3cda4491ce666e7c5270954c4d926b9
net: ena: add support for changing max_header_size in LLQ mode

Up until now the driver always used a single setting for the sizes
of the different parts of the llq entry - 128 for entry size, 2 for
descriptors before header and 96 for maximum header size.

The current code makes sure that the parts of the llq entry are
compatible with each other and with the initial llq entry size given
by the device.

This commit changes this code to support any llq entry size

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c