mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
commit
2b9b7502df
275 changed files with 3148 additions and 1202 deletions
|
|
@ -258,7 +258,8 @@ static int tcf_mirred_act(struct sk_buff *skb, const struct tc_action *a,
|
|||
if (is_redirect) {
|
||||
skb2->tc_redirected = 1;
|
||||
skb2->tc_from_ingress = skb2->tc_at_ingress;
|
||||
|
||||
if (skb2->tc_from_ingress)
|
||||
skb2->tstamp = 0;
|
||||
/* let's the caller reinsert the packet, if possible */
|
||||
if (use_reinsert) {
|
||||
res->ingress = want_ingress;
|
||||
|
|
|
|||
|
|
@ -709,11 +709,23 @@ static int fl_set_enc_opt(struct nlattr **tb, struct fl_flow_key *key,
|
|||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
const struct nlattr *nla_enc_key, *nla_opt_key, *nla_opt_msk = NULL;
|
||||
int option_len, key_depth, msk_depth = 0;
|
||||
int err, option_len, key_depth, msk_depth = 0;
|
||||
|
||||
err = nla_validate_nested(tb[TCA_FLOWER_KEY_ENC_OPTS],
|
||||
TCA_FLOWER_KEY_ENC_OPTS_MAX,
|
||||
enc_opts_policy, extack);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
nla_enc_key = nla_data(tb[TCA_FLOWER_KEY_ENC_OPTS]);
|
||||
|
||||
if (tb[TCA_FLOWER_KEY_ENC_OPTS_MASK]) {
|
||||
err = nla_validate_nested(tb[TCA_FLOWER_KEY_ENC_OPTS_MASK],
|
||||
TCA_FLOWER_KEY_ENC_OPTS_MAX,
|
||||
enc_opts_policy, extack);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
nla_opt_msk = nla_data(tb[TCA_FLOWER_KEY_ENC_OPTS_MASK]);
|
||||
msk_depth = nla_len(tb[TCA_FLOWER_KEY_ENC_OPTS_MASK]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -648,15 +648,6 @@ deliver:
|
|||
*/
|
||||
skb->dev = qdisc_dev(sch);
|
||||
|
||||
#ifdef CONFIG_NET_CLS_ACT
|
||||
/*
|
||||
* If it's at ingress let's pretend the delay is
|
||||
* from the network (tstamp will be updated).
|
||||
*/
|
||||
if (skb->tc_redirected && skb->tc_from_ingress)
|
||||
skb->tstamp = 0;
|
||||
#endif
|
||||
|
||||
if (q->slot.slot_next) {
|
||||
q->slot.packets_left--;
|
||||
q->slot.bytes_left -= qdisc_pkt_len(skb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue