summaryrefslogtreecommitdiff
path: root/include/net/tso.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2020-06-18 06:53:24 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-19 06:46:23 +0300
commit504b912150983a8b2499bbf9e4501336677404c9 (patch)
treeec4c56d92f18b6654a715e6e25f279f2999cf1ef /include/net/tso.h
parent185c3e5860227065dcb6ee884b45e0debe4762dd (diff)
downloadlinux-504b912150983a8b2499bbf9e4501336677404c9.tar.xz
net: tso: constify tso_count_descs() and friends
skb argument of tso_count_descs(), tso_build_hdr() and tso_build_data() can be const. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tso.h')
-rw-r--r--include/net/tso.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tso.h b/include/net/tso.h
index d9b0a14b2a57..32d9272ade6a 100644
--- a/include/net/tso.h
+++ b/include/net/tso.h
@@ -15,10 +15,10 @@ struct tso_t {
u32 tcp_seq;
};
-int tso_count_descs(struct sk_buff *skb);
-void tso_build_hdr(struct sk_buff *skb, char *hdr, struct tso_t *tso,
+int tso_count_descs(const struct sk_buff *skb);
+void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
int size, bool is_last);
-void tso_build_data(struct sk_buff *skb, struct tso_t *tso, int size);
+void tso_build_data(const struct sk_buff *skb, struct tso_t *tso, int size);
void tso_start(struct sk_buff *skb, struct tso_t *tso);
#endif /* _TSO_H */