summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_core.h
diff options
context:
space:
mode:
authorTom Parkin <tparkin@katalix.com>2020-09-03 09:54:47 +0100
committerDavid S. Miller <davem@davemloft.net>2020-09-03 12:19:03 -0700
commitefe0527882a348b55415720c6e46448d3ca87dd9 (patch)
tree01d87307d6956675a36b3e1c1c4581c02e6954e5 /net/l2tp/l2tp_core.h
parentffd923f5f8d5501f7f123f5c4241eaee3e870a30 (diff)
downloadlinux-efe0527882a348b55415720c6e46448d3ca87dd9.tar.gz
linux-efe0527882a348b55415720c6e46448d3ca87dd9.tar.bz2
linux-efe0527882a348b55415720c6e46448d3ca87dd9.zip
l2tp: remove header length param from l2tp_xmit_skb
All callers pass the session structure's hdr_len field as the header length parameter to l2tp_xmit_skb. Since we're passing a pointer to the session structure to l2tp_xmit_skb anyway, there's not much point breaking the header length out as a separate argument. Signed-off-by: Tom Parkin <tparkin@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_core.h')
-rw-r--r--net/l2tp/l2tp_core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index 07249c5f22ef..5550a42dda04 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -261,8 +261,7 @@ int l2tp_udp_encap_recv(struct sock *sk, struct sk_buff *skb);
/* Transmit path helpers for sending packets over the tunnel socket. */
void l2tp_session_set_header_len(struct l2tp_session *session, int version);
-int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb,
- int hdr_len);
+int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb);
/* Pseudowire management.
* Pseudowires should register with l2tp core on module init, and unregister