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/fast-classifier.c

    r32776 r33046  
    3535#include <linux/if_bridge.h>
    3636#include <linux/hashtable.h>
     37#include <net/pkt_sched.h>
    3738
    3839#include "sfe_backport.h"
     
    231232        }
    232233
     234#ifdef CONFIG_NET_CLS_ACT
     235        /*
     236         * If ingress Qdisc configured, and packet not processed by ingress Qdisc yet
     237         * We cannot accelerate this packet.
     238         */
     239        if (dev->ingress_queue && !(skb->tc_verd & TC_NCLS)) {
     240                goto rx_exit;
     241        }
     242#endif
     243
    233244        /*
    234245         * We're only interested in IPv4 and IPv6 packets.
Note: See TracChangeset for help on using the changeset viewer.