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: <20250923113540.000032ab@huawei.com>
Date: Tue, 23 Sep 2025 11:35:40 +0100
From: Jonathan Cameron <jonathan.cameron@...wei.com>
To: Pavan Chebbi <pavan.chebbi@...adcom.com>
CC: <jgg@...pe.ca>, <michael.chan@...adcom.com>, <dave.jiang@...el.com>,
	<saeedm@...dia.com>, <davem@...emloft.net>, <corbet@....net>,
	<edumazet@...gle.com>, <gospo@...adcom.com>, <kuba@...nel.org>,
	<netdev@...r.kernel.org>, <pabeni@...hat.com>, <andrew+netdev@...n.ch>,
	<selvin.xavier@...adcom.com>, <leon@...nel.org>,
	<kalesh-anakkur.purayil@...adcom.com>
Subject: Re: [PATCH net-next v2 1/6] bnxt_en: Move common definitions to
 include/linux/bnxt/

On Tue, 23 Sep 2025 02:58:20 -0700
Pavan Chebbi <pavan.chebbi@...adcom.com> wrote:

> We have common definitions that are now going to be used
> by more than one component outside of bnxt (bnxt_re and
> fwctl)
> 
> Move bnxt_ulp.h to include/linux/bnxt/ as ulp.h.
> Have a new common.h, also at the same place that will
> have some non-ulp but shared bnxt declarations.
> 
> Reviewed-by: Andy Gospodarek <gospo@...adcom.com>
> Signed-off-by: Pavan Chebbi <pavan.chebbi@...adcom.com>
One really minor comment inline. Given this does exactly what you say
FWIW.

Reviewed-by: Jonathan Cameron <jonathan.cameron@...wei.com>

> diff --git a/include/linux/bnxt/common.h b/include/linux/bnxt/common.h
> new file mode 100644
> index 000000000000..2ee75a0a1feb
> --- /dev/null
> +++ b/include/linux/bnxt/common.h
> @@ -0,0 +1,20 @@
> +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
> +/*
> + * Copyright (c) 2025, Broadcom Corporation
> + *

Totally trivial but this blank line adds nothing useful.

> + */
> +
> +#ifndef BNXT_COMN_H
> +#define BNXT_COMN_H
> +
> +#include <linux/bnxt/hsi.h>
> +#include <linux/bnxt/ulp.h>
> +#include <linux/auxiliary_bus.h>
> +
> +struct bnxt_aux_priv {
> +	struct auxiliary_device aux_dev;
> +	struct bnxt_en_dev *edev;
> +	int id;
> +};
> +
> +#endif /* BNXT_COMN_H */
> diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h b/include/linux/bnxt/ulp.h
> similarity index 100%
> rename from drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h
> rename to include/linux/bnxt/ulp.h


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ