lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 6 Oct 2016 17:49:16 -0700
From:   Cong Wang <>
To:     Jamal Hadi Salim <>
Cc:     Shmulik Ladkani <>,
        David Miller <>,
        Eric Dumazet <>,
        Daniel Borkmann <>,
        Linux Kernel Network Developers <>,
        Eric Dumazet <>
Subject: Re: [PATCH v3 net-next 4/4] net/sched: act_mirred: Implement ingress actions

On Thu, Oct 6, 2016 at 5:17 PM, Jamal Hadi Salim <> wrote:
> I dont believe we need to bother with the return code in  this case.


For a quick example, STOLEN vs. SHOT:

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

Note, *qerr is the return value to ->enqueue().

Powered by blists - more mailing lists