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)
commit1a545ebe380bf4c1433e3c136e35a77764fda5ad
treecad98aa54311fbadc85bee717a4d45b8e08b5877
parent9dda51101a77abb05ae49612164523bb91bf92f0
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