Thread (14 messages) 14 messages, 5 authors, 2016-10-08

Re: [PATCH v3 net-next 4/4] net/sched: act_mirred: Implement ingress actions

flat view

From: Cong Wang <hidden>
Date: 2016-10-07 00:49:38

On Thu, Oct 6, 2016 at 5:17 PM, Jamal Hadi Salim [off-list ref] wrote:
I dont believe we need to bother with the return code in  this case.
Why?

For a quick example, STOLEN vs. SHOT:

        result = tc_classify(skb, filter, &res, false);
        if (result >= 0) {
#ifdef CONFIG_NET_CLS_ACT
                switch (result) {
                case TC_ACT_STOLEN:
                case TC_ACT_QUEUED:
                        *qerr = NET_XMIT_SUCCESS | __NET_XMIT_STOLEN;
                case TC_ACT_SHOT:
                        return 0;
                }
#endif

Note, *qerr is the return value to ->enqueue().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help