Ignore:
Timestamp:
Aug 7, 2017, 4:35:00 PM (10 days ago)
Author:
brainslayer
Message:

dissent: sfe: support qos ingress shaping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/net/shortcut-fe/sfe_cm.c

    r32718 r33046  
    3333#include <linux/netfilter/xt_dscp.h>
    3434#include <linux/if_bridge.h>
     35#include <net/pkt_sched.h>
    3536
    3637#include "sfe.h"
     
    144145        dev = skb->dev;
    145146
     147#ifdef CONFIG_NET_CLS_ACT
     148        /*
     149         * If ingress Qdisc configured, and packet not processed by ingress Qdisc yet
     150         * We cannot accelerate this packet.
     151         */
     152        if (dev->ingress_queue && !(skb->tc_verd & TC_NCLS)) {
     153                return 0;
     154        }
     155#endif
     156
    146157        /*
    147158         * We're only interested in IPv4 and IPv6 packets.
Note: See TracChangeset for help on using the changeset viewer.