提交 bb296246 编写于 作者: H Herbert Xu 提交者: David S. Miller

inet: Remove unused send_check length argument

inet: Remove unused send_check length argument

This patch removes the unused length argument from the send_check
function in struct inet_connection_sock_af_ops.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Tested-by: NYinghai <yinghai.lu@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8ad50d96
...@@ -37,8 +37,7 @@ struct tcp_congestion_ops; ...@@ -37,8 +37,7 @@ struct tcp_congestion_ops;
*/ */
struct inet_connection_sock_af_ops { struct inet_connection_sock_af_ops {
int (*queue_xmit)(struct sk_buff *skb, int ipfragok); int (*queue_xmit)(struct sk_buff *skb, int ipfragok);
void (*send_check)(struct sock *sk, int len, void (*send_check)(struct sock *sk, struct sk_buff *skb);
struct sk_buff *skb);
int (*rebuild_header)(struct sock *sk); int (*rebuild_header)(struct sock *sk);
int (*conn_request)(struct sock *sk, struct sk_buff *skb); int (*conn_request)(struct sock *sk, struct sk_buff *skb);
struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb, struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb,
......
...@@ -423,7 +423,7 @@ extern u8 *tcp_parse_md5sig_option(struct tcphdr *th); ...@@ -423,7 +423,7 @@ extern u8 *tcp_parse_md5sig_option(struct tcphdr *th);
* TCP v4 functions exported for the inet6 API * TCP v4 functions exported for the inet6 API
*/ */
extern void tcp_v4_send_check(struct sock *sk, int len, extern void tcp_v4_send_check(struct sock *sk,
struct sk_buff *skb); struct sk_buff *skb);
extern int tcp_v4_conn_request(struct sock *sk, extern int tcp_v4_conn_request(struct sock *sk,
......
...@@ -223,7 +223,7 @@ static inline void dccp_csum_outgoing(struct sk_buff *skb) ...@@ -223,7 +223,7 @@ static inline void dccp_csum_outgoing(struct sk_buff *skb)
skb->csum = skb_checksum(skb, 0, (cov > skb->len)? skb->len : cov, 0); skb->csum = skb_checksum(skb, 0, (cov > skb->len)? skb->len : cov, 0);
} }
extern void dccp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb); extern void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb);
extern int dccp_retransmit_skb(struct sock *sk); extern int dccp_retransmit_skb(struct sock *sk);
......
...@@ -349,7 +349,7 @@ static inline __sum16 dccp_v4_csum_finish(struct sk_buff *skb, ...@@ -349,7 +349,7 @@ static inline __sum16 dccp_v4_csum_finish(struct sk_buff *skb,
return csum_tcpudp_magic(src, dst, skb->len, IPPROTO_DCCP, skb->csum); return csum_tcpudp_magic(src, dst, skb->len, IPPROTO_DCCP, skb->csum);
} }
void dccp_v4_send_check(struct sock *sk, int unused, struct sk_buff *skb) void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb)
{ {
const struct inet_sock *inet = inet_sk(sk); const struct inet_sock *inet = inet_sk(sk);
struct dccp_hdr *dh = dccp_hdr(skb); struct dccp_hdr *dh = dccp_hdr(skb);
......
...@@ -60,8 +60,7 @@ static inline __sum16 dccp_v6_csum_finish(struct sk_buff *skb, ...@@ -60,8 +60,7 @@ static inline __sum16 dccp_v6_csum_finish(struct sk_buff *skb,
return csum_ipv6_magic(saddr, daddr, skb->len, IPPROTO_DCCP, skb->csum); return csum_ipv6_magic(saddr, daddr, skb->len, IPPROTO_DCCP, skb->csum);
} }
static inline void dccp_v6_send_check(struct sock *sk, int unused_value, static inline void dccp_v6_send_check(struct sock *sk, struct sk_buff *skb)
struct sk_buff *skb)
{ {
struct ipv6_pinfo *np = inet6_sk(sk); struct ipv6_pinfo *np = inet6_sk(sk);
struct dccp_hdr *dh = dccp_hdr(skb); struct dccp_hdr *dh = dccp_hdr(skb);
......
...@@ -129,7 +129,7 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb) ...@@ -129,7 +129,7 @@ static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
break; break;
} }
icsk->icsk_af_ops->send_check(sk, 0, skb); icsk->icsk_af_ops->send_check(sk, skb);
if (set_ack) if (set_ack)
dccp_event_ack_sent(sk); dccp_event_ack_sent(sk);
......
...@@ -537,7 +537,7 @@ static void __tcp_v4_send_check(struct sk_buff *skb, ...@@ -537,7 +537,7 @@ static void __tcp_v4_send_check(struct sk_buff *skb,
} }
/* This routine computes an IPv4 TCP checksum. */ /* This routine computes an IPv4 TCP checksum. */
void tcp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb) void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb)
{ {
struct inet_sock *inet = inet_sk(sk); struct inet_sock *inet = inet_sk(sk);
......
...@@ -878,7 +878,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, ...@@ -878,7 +878,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
} }
#endif #endif
icsk->icsk_af_ops->send_check(sk, skb->len, skb); icsk->icsk_af_ops->send_check(sk, skb);
if (likely(tcb->flags & TCPCB_FLAG_ACK)) if (likely(tcb->flags & TCPCB_FLAG_ACK))
tcp_event_ack_sent(sk, tcp_skb_pcount(skb)); tcp_event_ack_sent(sk, tcp_skb_pcount(skb));
......
...@@ -933,7 +933,7 @@ static void __tcp_v6_send_check(struct sk_buff *skb, ...@@ -933,7 +933,7 @@ static void __tcp_v6_send_check(struct sk_buff *skb,
} }
} }
static void tcp_v6_send_check(struct sock *sk, int len, struct sk_buff *skb) static void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
{ {
struct ipv6_pinfo *np = inet6_sk(sk); struct ipv6_pinfo *np = inet6_sk(sk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册