lists.openwall.net   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  linux-hardening  linux-cve-announce  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]
Message-ID: <VI1PR10MB2446B3B9EC2441B962691D67ABEA9@VI1PR10MB2446.EURPRD10.PROD.OUTLOOK.COM>
Date:   Mon, 11 Apr 2022 14:23:59 +0000
From:   "Geva, Erez" <erez.geva.ext@...mens.com>
To:     Vladimir Oltean <olteanv@...il.com>
CC:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        Andrew Lunn <andrew@...n.ch>,
        Vivien Didelot <vivien.didelot@...il.com>,
        Florian Fainelli <f.fainelli@...il.com>,
        "Sudler, Simon" <simon.sudler@...mens.com>,
        "Meisinger, Andreas" <andreas.meisinger@...mens.com>,
        "Schild, Henning" <henning.schild@...mens.com>,
        "jan.kiszka@...mens.com" <jan.kiszka@...mens.com>
Subject: RE: [PATCH 1/1] DSA Add callback to traffic control information

As I mention, I do not own the tag driver code.

But for example for ETF, is like:

... tag_xmit(struct sk_buff *skb, struct net_device *dev)
+       struct tc_etf_qopt_offload etf;
...
+       etf.queue = skb_get_queue_mapping(skb);
+       if (dsa_slave_fetch_tc(dev, TC_SETUP_QDISC_ETF, &etf) == 0 && etf.enable) {
...

The port_fetch_tc callback is similar to port_setup_tc, only it reads the configuration instead of setting it.

I think it is easier to add a generic call back, so we do not need to add a new callback each time we support a new TC.

Erez



-----Original Message-----
From: Vladimir Oltean <olteanv@...il.com> 
Sent: Monday, 11 April 2022 15:30
To: Geva, Erez (ext) (DI PA DCP R&D 3) <erez.geva.ext@...mens.com>
Cc: netdev@...r.kernel.org; Andrew Lunn <andrew@...n.ch>; Vivien Didelot <vivien.didelot@...il.com>; Florian Fainelli <f.fainelli@...il.com>; Sudler, Simon (DI PA DCP TI) <simon.sudler@...mens.com>; Meisinger, Andreas (DI PA DCP TI) <andreas.meisinger@...mens.com>; Schild, Henning (T CED SES-DE) <henning.schild@...mens.com>; Kiszka, Jan (T CED) <jan.kiszka@...mens.com>
Subject: Re: [PATCH 1/1] DSA Add callback to traffic control information

On Mon, Apr 11, 2022 at 03:11:48PM +0200, Erez Geva wrote:
> Provide a callback for the DSA tag driver  to fetch information 
> regarding a traffic control.
> 
> Signed-off-by: Erez Geva <erez.geva.ext@...mens.com>
> ---

This is all? Can you show us some users?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ