Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several conflicts here. NFP driver bug fix adding nfp_netdev_is_nfp_repr() check to nfp_fl_output() needed some adjustments because the code block is in an else block now. Parallel additions to net/pkt_cls.h and net/sch_generic.h A bug fix in __tcp_retransmit_skb() conflicted with some of the rbtree changes in net-next. The tc action RCU callback fixes in 'net' had some overlap with some of the recent tcf_block reworking. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -261,6 +261,7 @@ int sctp_send_reset_streams(struct sctp_association *asoc,
|
||||
__u16 i, str_nums, *str_list;
|
||||
struct sctp_chunk *chunk;
|
||||
int retval = -EINVAL;
|
||||
__be16 *nstr_list;
|
||||
bool out, in;
|
||||
|
||||
if (!asoc->peer.reconf_capable ||
|
||||
@@ -291,13 +292,18 @@ int sctp_send_reset_streams(struct sctp_association *asoc,
|
||||
if (str_list[i] >= stream->incnt)
|
||||
goto out;
|
||||
|
||||
for (i = 0; i < str_nums; i++)
|
||||
str_list[i] = htons(str_list[i]);
|
||||
|
||||
chunk = sctp_make_strreset_req(asoc, str_nums, str_list, out, in);
|
||||
nstr_list = kcalloc(str_nums, sizeof(__be16), GFP_KERNEL);
|
||||
if (!nstr_list) {
|
||||
retval = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
|
||||
for (i = 0; i < str_nums; i++)
|
||||
str_list[i] = ntohs(str_list[i]);
|
||||
nstr_list[i] = htons(str_list[i]);
|
||||
|
||||
chunk = sctp_make_strreset_req(asoc, str_nums, nstr_list, out, in);
|
||||
|
||||
kfree(nstr_list);
|
||||
|
||||
if (!chunk) {
|
||||
retval = -ENOMEM;
|
||||
@@ -442,7 +448,7 @@ out:
|
||||
}
|
||||
|
||||
static struct sctp_paramhdr *sctp_chunk_lookup_strreset_param(
|
||||
struct sctp_association *asoc, __u32 resp_seq,
|
||||
struct sctp_association *asoc, __be32 resp_seq,
|
||||
__be16 type)
|
||||
{
|
||||
struct sctp_chunk *chunk = asoc->strreset_chunk;
|
||||
@@ -482,8 +488,9 @@ struct sctp_chunk *sctp_process_strreset_outreq(
|
||||
{
|
||||
struct sctp_strreset_outreq *outreq = param.v;
|
||||
struct sctp_stream *stream = &asoc->stream;
|
||||
__u16 i, nums, flags = 0, *str_p = NULL;
|
||||
__u32 result = SCTP_STRRESET_DENIED;
|
||||
__u16 i, nums, flags = 0;
|
||||
__be16 *str_p = NULL;
|
||||
__u32 request_seq;
|
||||
|
||||
request_seq = ntohl(outreq->request_seq);
|
||||
@@ -576,8 +583,9 @@ struct sctp_chunk *sctp_process_strreset_inreq(
|
||||
struct sctp_stream *stream = &asoc->stream;
|
||||
__u32 result = SCTP_STRRESET_DENIED;
|
||||
struct sctp_chunk *chunk = NULL;
|
||||
__u16 i, nums, *str_p;
|
||||
__u32 request_seq;
|
||||
__u16 i, nums;
|
||||
__be16 *str_p;
|
||||
|
||||
request_seq = ntohl(inreq->request_seq);
|
||||
if (TSN_lt(asoc->strreset_inseq, request_seq) ||
|
||||
@@ -897,7 +905,7 @@ struct sctp_chunk *sctp_process_strreset_resp(
|
||||
|
||||
if (req->type == SCTP_PARAM_RESET_OUT_REQUEST) {
|
||||
struct sctp_strreset_outreq *outreq;
|
||||
__u16 *str_p;
|
||||
__be16 *str_p;
|
||||
|
||||
outreq = (struct sctp_strreset_outreq *)req;
|
||||
str_p = outreq->list_of_streams;
|
||||
@@ -922,7 +930,7 @@ struct sctp_chunk *sctp_process_strreset_resp(
|
||||
nums, str_p, GFP_ATOMIC);
|
||||
} else if (req->type == SCTP_PARAM_RESET_IN_REQUEST) {
|
||||
struct sctp_strreset_inreq *inreq;
|
||||
__u16 *str_p;
|
||||
__be16 *str_p;
|
||||
|
||||
/* if the result is performed, it's impossible for inreq */
|
||||
if (result == SCTP_STRRESET_PERFORMED)
|
||||
|
||||
Reference in New Issue
Block a user