octeon_ep: add padding for small packets
authorShinas Rasheed <srasheed@marvell.com>
Tue, 14 Nov 2023 13:45:32 +0000 (05:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Nov 2023 21:55:05 +0000 (21:55 +0000)
commit5827fe2bc9c4bade6af994676c9823908e091877
tree3de4b6525bc602b47b5314c929a5cda147668d09
parent56eddc3cb1affe014d567f8460e5a76ca079f842
octeon_ep: add padding for small packets

Pad small packets to ETH_ZLEN before transmit, as hardware
cannot pad and requires software padding to ensure
minimum ethernet frame length.

Signed-off-by: Shinas Rasheed <srasheed@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeon_ep/octep_main.c