]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
sctp: define dst_pending_confirm as a bit in sctp_transport
authorXin Long <lucien.xin@gmail.com>
Sat, 18 Mar 2017 11:27:23 +0000 (19:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 01:31:50 +0000 (18:31 -0700)
As tp->dst_pending_confirm's value can only be set 0 or 1, this
patch is to change to define it as a bit instead of __u32.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h

index 07a0b128625a4e24f9aa83019eff6eb17308eda3..4f645198e9bd7b9f141dfa820d432b4b3d4916bd 100644 (file)
@@ -753,6 +753,8 @@ struct sctp_transport {
                /* Is the Path MTU update pending on this tranport */
                pmtu_pending:1,
 
+               dst_pending_confirm:1,  /* need to confirm neighbour */
+
                /* Has this transport moved the ctsn since we last sacked */
                sack_generation:1;
        u32 dst_cookie;
@@ -806,8 +808,6 @@ struct sctp_transport {
 
        __u32 burst_limited;    /* Holds old cwnd when max.burst is applied */
 
-       __u32 dst_pending_confirm;      /* need to confirm neighbour */
-
        /* Destination */
        struct dst_entry *dst;
        /* Source address. */