Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/broadcom/genet/bcmmii.c drivers/net/hyperv/netvsc.c kernel/bpf/hashtab.c Almost entirely overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -71,9 +71,8 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a
|
||||
{
|
||||
struct net *net = sock_net(sk);
|
||||
struct sctp_sock *sp;
|
||||
int i;
|
||||
sctp_paramhdr_t *p;
|
||||
int err;
|
||||
int i;
|
||||
|
||||
/* Retrieve the SCTP per socket area. */
|
||||
sp = sctp_sk((struct sock *)sk);
|
||||
@@ -264,8 +263,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a
|
||||
|
||||
/* AUTH related initializations */
|
||||
INIT_LIST_HEAD(&asoc->endpoint_shared_keys);
|
||||
err = sctp_auth_asoc_copy_shkeys(ep, asoc, gfp);
|
||||
if (err)
|
||||
if (sctp_auth_asoc_copy_shkeys(ep, asoc, gfp))
|
||||
goto fail_init;
|
||||
|
||||
asoc->active_key_id = ep->active_key_id;
|
||||
|
@@ -546,7 +546,6 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
|
||||
struct sctp_association *asoc = tp->asoc;
|
||||
struct sctp_chunk *chunk, *tmp;
|
||||
int pkt_count, gso = 0;
|
||||
int confirm;
|
||||
struct dst_entry *dst;
|
||||
struct sk_buff *head;
|
||||
struct sctphdr *sh;
|
||||
@@ -625,13 +624,13 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
|
||||
asoc->peer.last_sent_to = tp;
|
||||
}
|
||||
head->ignore_df = packet->ipfragok;
|
||||
confirm = tp->dst_pending_confirm;
|
||||
if (confirm)
|
||||
if (tp->dst_pending_confirm)
|
||||
skb_set_dst_pending_confirm(head, 1);
|
||||
/* neighbour should be confirmed on successful transmission or
|
||||
* positive error
|
||||
*/
|
||||
if (tp->af_specific->sctp_xmit(head, tp) >= 0 && confirm)
|
||||
if (tp->af_specific->sctp_xmit(head, tp) >= 0 &&
|
||||
tp->dst_pending_confirm)
|
||||
tp->dst_pending_confirm = 0;
|
||||
|
||||
out:
|
||||
|
@@ -382,17 +382,18 @@ static int sctp_prsctp_prune_sent(struct sctp_association *asoc,
|
||||
}
|
||||
|
||||
static int sctp_prsctp_prune_unsent(struct sctp_association *asoc,
|
||||
struct sctp_sndrcvinfo *sinfo,
|
||||
struct list_head *queue, int msg_len)
|
||||
struct sctp_sndrcvinfo *sinfo, int msg_len)
|
||||
{
|
||||
struct sctp_outq *q = &asoc->outqueue;
|
||||
struct sctp_chunk *chk, *temp;
|
||||
|
||||
list_for_each_entry_safe(chk, temp, queue, list) {
|
||||
list_for_each_entry_safe(chk, temp, &q->out_chunk_list, list) {
|
||||
if (!SCTP_PR_PRIO_ENABLED(chk->sinfo.sinfo_flags) ||
|
||||
chk->sinfo.sinfo_timetolive <= sinfo->sinfo_timetolive)
|
||||
continue;
|
||||
|
||||
list_del_init(&chk->list);
|
||||
q->out_qlen -= chk->skb->len;
|
||||
asoc->sent_cnt_removable--;
|
||||
asoc->abandoned_unsent[SCTP_PR_INDEX(PRIO)]++;
|
||||
|
||||
@@ -431,9 +432,7 @@ void sctp_prsctp_prune(struct sctp_association *asoc,
|
||||
return;
|
||||
}
|
||||
|
||||
sctp_prsctp_prune_unsent(asoc, sinfo,
|
||||
&asoc->outqueue.out_chunk_list,
|
||||
msg_len);
|
||||
sctp_prsctp_prune_unsent(asoc, sinfo, msg_len);
|
||||
}
|
||||
|
||||
/* Mark all the eligible packets on a transport for retransmission. */
|
||||
|
Reference in New Issue
Block a user