]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: xgmac: Only get SPH header len if available
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 6 Nov 2019 15:02:58 +0000 (16:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:22:55 +0000 (21:22 -0800)
commita92abb890d0ba3904224ef612bf2b7f289194dfe
treefee4804982e757070ad0701d78bd67638aaee9d6
parentd02829f3ef322bed3eb4bd784a7482136c58a978
net: stmmac: xgmac: Only get SPH header len if available

Split Header length is only available when L34T == 0. Fix this by
correctly checking if L34T is zero before trying to get Header length.

Fixes: 3e4d2632676a ("net: stmmac: Add Split Header support and enable it in XGMAC cores")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c