mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Resolve conflicts with conntrack template fixes. Conflicts: net/netfilter/nf_conntrack_core.c net/netfilter/nf_synproxy_core.c net/netfilter/xt_CT.c Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
commit
81bf1c64e7
855 changed files with 24295 additions and 7762 deletions
|
|
@ -101,6 +101,8 @@ static int tcf_mirred_init(struct net *net, struct nlattr *nla,
|
|||
return ret;
|
||||
ret = ACT_P_CREATED;
|
||||
} else {
|
||||
if (bind)
|
||||
return 0;
|
||||
if (!ovr) {
|
||||
tcf_hash_release(a, bind);
|
||||
return -EEXIST;
|
||||
|
|
|
|||
|
|
@ -162,7 +162,8 @@ static int tcf_nat(struct sk_buff *skb, const struct tc_action *a,
|
|||
goto drop;
|
||||
|
||||
tcph = (void *)(skb_network_header(skb) + ihl);
|
||||
inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, 1);
|
||||
inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr,
|
||||
true);
|
||||
break;
|
||||
}
|
||||
case IPPROTO_UDP:
|
||||
|
|
@ -178,7 +179,7 @@ static int tcf_nat(struct sk_buff *skb, const struct tc_action *a,
|
|||
udph = (void *)(skb_network_header(skb) + ihl);
|
||||
if (udph->check || skb->ip_summed == CHECKSUM_PARTIAL) {
|
||||
inet_proto_csum_replace4(&udph->check, skb, addr,
|
||||
new_addr, 1);
|
||||
new_addr, true);
|
||||
if (!udph->check)
|
||||
udph->check = CSUM_MANGLED_0;
|
||||
}
|
||||
|
|
@ -231,7 +232,7 @@ static int tcf_nat(struct sk_buff *skb, const struct tc_action *a,
|
|||
iph->saddr = new_addr;
|
||||
|
||||
inet_proto_csum_replace4(&icmph->checksum, skb, addr, new_addr,
|
||||
0);
|
||||
false);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ static int fifo_init(struct Qdisc *sch, struct nlattr *opt)
|
|||
bool is_bfifo = sch->ops == &bfifo_qdisc_ops;
|
||||
|
||||
if (opt == NULL) {
|
||||
u32 limit = qdisc_dev(sch)->tx_queue_len ? : 1;
|
||||
u32 limit = qdisc_dev(sch)->tx_queue_len;
|
||||
|
||||
if (is_bfifo)
|
||||
limit *= psched_mtu(qdisc_dev(sch));
|
||||
|
|
|
|||
|
|
@ -288,10 +288,26 @@ begin:
|
|||
|
||||
static void fq_codel_reset(struct Qdisc *sch)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
struct fq_codel_sched_data *q = qdisc_priv(sch);
|
||||
int i;
|
||||
|
||||
while ((skb = fq_codel_dequeue(sch)) != NULL)
|
||||
kfree_skb(skb);
|
||||
INIT_LIST_HEAD(&q->new_flows);
|
||||
INIT_LIST_HEAD(&q->old_flows);
|
||||
for (i = 0; i < q->flows_cnt; i++) {
|
||||
struct fq_codel_flow *flow = q->flows + i;
|
||||
|
||||
while (flow->head) {
|
||||
struct sk_buff *skb = dequeue_head(flow);
|
||||
|
||||
qdisc_qstats_backlog_dec(sch, skb);
|
||||
kfree_skb(skb);
|
||||
}
|
||||
|
||||
INIT_LIST_HEAD(&flow->flowchain);
|
||||
codel_vars_init(&flow->cvars);
|
||||
}
|
||||
memset(q->backlogs, 0, q->flows_cnt * sizeof(u32));
|
||||
sch->q.qlen = 0;
|
||||
}
|
||||
|
||||
static const struct nla_policy fq_codel_policy[TCA_FQ_CODEL_MAX + 1] = {
|
||||
|
|
|
|||
|
|
@ -735,7 +735,7 @@ static void attach_one_default_qdisc(struct net_device *dev,
|
|||
{
|
||||
struct Qdisc *qdisc = &noqueue_qdisc;
|
||||
|
||||
if (dev->tx_queue_len) {
|
||||
if (dev->tx_queue_len && !(dev->priv_flags & IFF_NO_QUEUE)) {
|
||||
qdisc = qdisc_create_dflt(dev_queue,
|
||||
default_qdisc_ops, TC_H_ROOT);
|
||||
if (!qdisc) {
|
||||
|
|
@ -755,7 +755,9 @@ static void attach_default_qdiscs(struct net_device *dev)
|
|||
|
||||
txq = netdev_get_tx_queue(dev, 0);
|
||||
|
||||
if (!netif_is_multiqueue(dev) || dev->tx_queue_len == 0) {
|
||||
if (!netif_is_multiqueue(dev) ||
|
||||
dev->tx_queue_len == 0 ||
|
||||
dev->priv_flags & IFF_NO_QUEUE) {
|
||||
netdev_for_each_tx_queue(dev, attach_one_default_qdisc, NULL);
|
||||
dev->qdisc = txq->qdisc_sleeping;
|
||||
atomic_inc(&dev->qdisc->refcnt);
|
||||
|
|
|
|||
|
|
@ -512,11 +512,9 @@ static int gred_init(struct Qdisc *sch, struct nlattr *opt)
|
|||
|
||||
if (tb[TCA_GRED_LIMIT])
|
||||
sch->limit = nla_get_u32(tb[TCA_GRED_LIMIT]);
|
||||
else {
|
||||
u32 qlen = qdisc_dev(sch)->tx_queue_len ? : 1;
|
||||
|
||||
sch->limit = qlen * psched_mtu(qdisc_dev(sch));
|
||||
}
|
||||
else
|
||||
sch->limit = qdisc_dev(sch)->tx_queue_len
|
||||
* psched_mtu(qdisc_dev(sch));
|
||||
|
||||
return gred_change_table_def(sch, tb[TCA_GRED_DPS]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1048,11 +1048,9 @@ static int htb_init(struct Qdisc *sch, struct nlattr *opt)
|
|||
|
||||
if (tb[TCA_HTB_DIRECT_QLEN])
|
||||
q->direct_qlen = nla_get_u32(tb[TCA_HTB_DIRECT_QLEN]);
|
||||
else {
|
||||
else
|
||||
q->direct_qlen = qdisc_dev(sch)->tx_queue_len;
|
||||
if (q->direct_qlen < 2) /* some devices have zero tx_queue_len */
|
||||
q->direct_qlen = 2;
|
||||
}
|
||||
|
||||
if ((q->rate2quantum = gopt->rate2quantum) < 1)
|
||||
q->rate2quantum = 1;
|
||||
q->defcls = gopt->defcls;
|
||||
|
|
|
|||
|
|
@ -130,12 +130,8 @@ static int plug_init(struct Qdisc *sch, struct nlattr *opt)
|
|||
q->unplug_indefinite = false;
|
||||
|
||||
if (opt == NULL) {
|
||||
/* We will set a default limit of 100 pkts (~150kB)
|
||||
* in case tx_queue_len is not available. The
|
||||
* default value is completely arbitrary.
|
||||
*/
|
||||
u32 pkt_limit = qdisc_dev(sch)->tx_queue_len ? : 100;
|
||||
q->limit = pkt_limit * psched_mtu(qdisc_dev(sch));
|
||||
q->limit = qdisc_dev(sch)->tx_queue_len
|
||||
* psched_mtu(qdisc_dev(sch));
|
||||
} else {
|
||||
struct tc_plug_qopt *ctl = nla_data(opt);
|
||||
|
||||
|
|
|
|||
|
|
@ -502,7 +502,7 @@ static int sfb_change(struct Qdisc *sch, struct nlattr *opt)
|
|||
|
||||
limit = ctl->limit;
|
||||
if (limit == 0)
|
||||
limit = max_t(u32, qdisc_dev(sch)->tx_queue_len, 1);
|
||||
limit = qdisc_dev(sch)->tx_queue_len;
|
||||
|
||||
child = fifo_create_dflt(sch, &pfifo_qdisc_ops, limit);
|
||||
if (IS_ERR(child))
|
||||
|
|
|
|||
Loading…
Reference in a new issue