net: stmmac: Initial support for TBS
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 13 Jan 2020 16:24:09 +0000 (17:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2020 02:31:48 +0000 (18:31 -0800)
commit579a25a854d482bc9d0f9ab0e07ba32fb66bd9e3
tree43a4cc5c23706f6f08c1c4e6d3b1abb041bd2c28
parentab9837b5ed51f128f898a93d873ba7198abc1140
net: stmmac: Initial support for TBS

Adds the initial hooks for TBS support. This needs a 32 byte descriptor
in order for it to work with current HW. Adds all the logic for Enhanced
Descriptors in main core but no HW related logic for now.

Changes from v2:
- Use bitfield for TBS status / support (Jakub)
- Remove unneeded cache alignment (Jakub)
- Fix checkpatch issues

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/descs.h
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h