]> git.baikalelectronics.ru Git - kernel.git/commit
ARCNET: fix hard_header_len limit
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Thu, 17 Sep 2015 13:18:34 +0000 (15:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 05:26:55 +0000 (22:26 -0700)
commit57d1a3b5d0c3dd65b821e0b6a2eeb3cc8b645d53
treeff74dc6677ae5068ede74255215e1f8239bd1c89
parenta29c4ddf7442f11446d4e62adcb32cef49be9b0a
ARCNET: fix hard_header_len limit

For arcnet the bare minimum header only contains the 4 bytes to
specify source, dest and offset (1, 1 and 2 bytes respectively).
The corresponding struct is struct arc_hardware.

The struct archdr contains additionally a union of possible soft
headers. When doing $insertusecasehere packets might well
include short (or even no?) soft headers.

For this reason only use arc_hardware instead of archdr to
determine the hard_header_len for an arcnet device.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/arcnet.c