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] [day] [month] [year] [list]
Message-ID: 
 <PH0PR18MB47347EC45BDBD9F192BC05FAC7442@PH0PR18MB4734.namprd18.prod.outlook.com>
Date: Thu, 8 Feb 2024 07:52:52 +0000
From: Shinas Rasheed <srasheed@...vell.com>
To: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@...adcom.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Haseeb Gani
	<hgani@...vell.com>, Vimlesh Kumar <vimleshk@...vell.com>,
        Sathesh B Edara
	<sedara@...vell.com>,
        "egallen@...hat.com" <egallen@...hat.com>,
        "mschmidt@...hat.com" <mschmidt@...hat.com>,
        "pabeni@...hat.com"
	<pabeni@...hat.com>,
        "kuba@...nel.org" <kuba@...nel.org>,
        "horms@...nel.org"
	<horms@...nel.org>,
        "wizhao@...hat.com" <wizhao@...hat.com>,
        "kheib@...hat.com" <kheib@...hat.com>,
        "konguyen@...hat.com"
	<konguyen@...hat.com>,
        Veerasenareddy Burru <vburru@...vell.com>,
        Satananda
 Burla <sburla@...vell.com>,
        "David S. Miller" <davem@...emloft.net>,
        Eric
 Dumazet <edumazet@...gle.com>
Subject: RE: [EXT] Re: [PATCH net-next v6 5/8] octeon_ep_vf: add support for
 ndo ops



From: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@...adcom.com> 
Sent: Wednesday, February 7, 2024 1:40 PM
To: Shinas Rasheed <srasheed@...vell.com>
Cc: netdev@...r.kernel.org; linux-kernel@...r.kernel.org; Haseeb Gani <hgani@...vell.com>; Vimlesh Kumar <vimleshk@...vell.com>; Sathesh B Edara <sedara@...vell.com>; egallen@...hat.com; mschmidt@...hat.com; pabeni@...hat.com; kuba@...nel.org; horms@...nel.org; wizhao@...hat.com; kheib@...hat.com; konguyen@...hat.com; Veerasenareddy Burru <vburru@...vell.com>; Satananda Burla <sburla@...vell.com>; David S. Miller <davem@...emloft.net>; Eric Dumazet <edumazet@...gle.com>
Subject: [EXT] Re: [PATCH net-next v6 5/8] octeon_ep_vf: add support for ndo ops

On Wed, Feb 7, 2024 at 12:23 PM Shinas Rasheed <mailto:srasheed@...vell.com> wrote:
Add support for ndo ops to set MAC address, change MTU, get stats.
Add control path support to set MAC address, change MTU, get stats,
set speed, get and set link mode.
[Kalesh]: You are adding support for only one ndo hook ".ndo_get_stats64" in this patch. Am I missing something?

Signed-off-by: Shinas Rasheed <mailto:srasheed@...vell.com>

+int octep_vf_get_if_stats(struct octep_vf_device *oct)
[Kalesh]: You may want to make this function static. 

This is an interface api which is used in patch [7/8]

+{
+       struct octep_vf_iface_rxtx_stats vf_stats;
+       int ret, size;
+
+       memset(&vf_stats, 0, sizeof(struct octep_vf_iface_rxtx_stats));
[Kalesh]: You can avoid memset by initializing vf_stats = {}; 
+       ret = octep_vf_mbox_bulk_read(oct, OCTEP_PFVF_MBOX_CMD_GET_STATS,
+                                     (u8 *)&vf_stats, &size);
+       if (!ret) {

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ