]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net/wan/hdlc_cisco: Add hard_header_len
authorXie He <xie.he.0141@gmail.com>
Fri, 28 Aug 2020 07:07:52 +0000 (00:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:22:43 +0000 (12:22 -0700)
commit4412d82235402260ea0fdcf495ad0c79faf789c8
treecad98aa54311fbadc85bee717a4d45b8e08b5877
parent19c9bef30d30ce6525be5fe1889036f13e52fccc
drivers/net/wan/hdlc_cisco: Add hard_header_len

This driver didn't set hard_header_len. This patch sets hard_header_len
for it according to its header_ops->create function.

This driver's header_ops->create function (cisco_hard_header) creates
a header of (struct hdlc_header), so hard_header_len should be set to
sizeof(struct hdlc_header).

Cc: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc_cisco.c