diff mbox series

squash-to: "mptcp: Implement MPTCP receive path"

Message ID 0af08ed870804a5999858cb7ce676a4cfeb9fb22.1576253891.git.dcaratti@redhat.com
State Accepted, archived
Delegated to: Matthieu Baerts
Headers show
Series squash-to: "mptcp: Implement MPTCP receive path" | expand

Commit Message

Davide Caratti Dec. 13, 2019, 4:18 p.m. UTC
checkpatch fixes

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
 net/mptcp/subflow.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Paolo Abeni Dec. 13, 2019, 4:36 p.m. UTC | #1
On Fri, 2019-12-13 at 17:18 +0100, Davide Caratti wrote:
> checkpatch fixes
> 
> Signed-off-by: Davide Caratti <dcaratti@redhat.com>
> ---
>  net/mptcp/subflow.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> index cfc90c471460..da10b5092d8d 100644
> --- a/net/mptcp/subflow.c
> +++ b/net/mptcp/subflow.c
> @@ -237,7 +237,7 @@ static void warn_bad_map(struct mptcp_subflow_context *subflow, u32 ssn)
>  static bool skb_is_fully_mapped(struct sock *ssk, struct sk_buff *skb)
>  {
>  	struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk);
> -	unsigned skb_consumed;
> +	unsigned int skb_consumed;
>  
>  	skb_consumed = tcp_sk(ssk)->copied_seq - TCP_SKB_CB(skb)->seq;
>  	if (WARN_ON_ONCE(skb_consumed >= skb->len))


whooops, I messed this one badly!

> @@ -284,9 +284,9 @@ static enum mapping_status get_mapping_status(struct sock *ssk)
>  	if (!mpext || !mpext->use_map) {
>  		if (!subflow->map_valid && !skb->len) {
>  			/* the TCP stack deliver 0 len FIN pkt to the receive
> -			* queue, that is the only 0len pkts ever expected here,
> -			* and we can admit no mapping only for 0 len pkts
> -			*/
> +			 * queue, that is the only 0len pkts ever expected here,
> +			 * and we can admit no mapping only for 0 len pkts
> +			 */
>  			if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN))
>  				WARN_ONCE(1, "0len seq %d:%d flags %x",
>  					  TCP_SKB_CB(skb)->seq,

ACK,

Thank you Davide for fixing this!

/P
diff mbox series

Patch

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index cfc90c471460..da10b5092d8d 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -237,7 +237,7 @@  static void warn_bad_map(struct mptcp_subflow_context *subflow, u32 ssn)
 static bool skb_is_fully_mapped(struct sock *ssk, struct sk_buff *skb)
 {
 	struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk);
-	unsigned skb_consumed;
+	unsigned int skb_consumed;
 
 	skb_consumed = tcp_sk(ssk)->copied_seq - TCP_SKB_CB(skb)->seq;
 	if (WARN_ON_ONCE(skb_consumed >= skb->len))
@@ -284,9 +284,9 @@  static enum mapping_status get_mapping_status(struct sock *ssk)
 	if (!mpext || !mpext->use_map) {
 		if (!subflow->map_valid && !skb->len) {
 			/* the TCP stack deliver 0 len FIN pkt to the receive
-			* queue, that is the only 0len pkts ever expected here,
-			* and we can admit no mapping only for 0 len pkts
-			*/
+			 * queue, that is the only 0len pkts ever expected here,
+			 * and we can admit no mapping only for 0 len pkts
+			 */
 			if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN))
 				WARN_ONCE(1, "0len seq %d:%d flags %x",
 					  TCP_SKB_CB(skb)->seq,