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-3.2/net/shortcut-fe/sfe_cm.c

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