[PATCH net-next v2] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()

2017-01-11 Thread Robert Richter
>From struct ethtool_ops: int (*set_rxfh)(struct net_device *, const u32 *indir, const u8 *key, const u8 hfunc); Change function arg of hfunc to const type. V2: Fixed indentation. Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thun

[PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh()

2017-01-11 Thread Robert Richter
>From struct ethtool_ops: int (*set_rxfh)(struct net_device *, const u32 *indir, const u8 *key, const u8 hfunc); Change function arg of hfunc to const type. Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 2 +-

Re: [PATCH 2/2] net, thunderx: Use bool in structs where possible

2016-02-18 Thread Robert Richter
On 18.02.16 11:05:14, David Miller wrote: > From: Robert Richter > Date: Thu, 18 Feb 2016 13:39:09 +0100 > > > From: Robert Richter > > > > Looks like the :1 notation was accidentally introduced (this still > > uses 1 byte per flag). Using bool instead, which i

[PATCH 2/2] net, thunderx: Use bool in structs where possible

2016-02-18 Thread Robert Richter
From: Robert Richter Looks like the :1 notation was accidentally introduced (this still uses 1 byte per flag). Using bool instead, which is the common use. Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thunder/nic.h | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCH 0/2] net: thunderx: Small cleanups

2016-02-18 Thread Robert Richter
From: Robert Richter Sending two small cleanups of the driver fixing issues found during code review. Robert Richter (2): net: thunderx: Fix const type in nicvf_set_rxfh() net, thunderx: Use bool in structs where possible drivers/net/ethernet/cavium/thunder/nic.h | 12

[PATCH 1/2] net: thunderx: Fix const type in nicvf_set_rxfh()

2016-02-18 Thread Robert Richter
From: Robert Richter >From struct ethtool_ops: int (*set_rxfh)(struct net_device *, const u32 *indir, const u8 *key, const u8 hfunc); Change function arg of hfunc to const type. Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thun

Re: [PATCH 0/6] net: thunderx: Setting IRQ affinity hints and other optimizations

2016-02-11 Thread Robert Richter
On 11.02.16 09:33:41, David Miller wrote: > From: Sunil Kovvuri > Date: Thu, 11 Feb 2016 18:56:48 +0530 > > > If time permits, can you please look at this patchset. > > You were given feedback and I expect you to address that feedback > and resubmit this series. > > This is what the "Changed Re

Re: [PATCH 5/6] net: thunderx: bgx: Add log message when setting mac address

2016-02-08 Thread Robert Richter
On 08.02.16 16:30:37, Sergei Shtylyov wrote: > >@@ -897,10 +898,13 @@ static int acpi_get_mac_address(struct acpi_device > >*adev, u8 *dst) > > goto out; > > > > if (!is_valid_ether_addr(mac)) { > >+dev_warn(dev, "MAC address invalid: %pM\n", mac); > >dev_er(), may

Re: [PATCH v2 0/2] net: thunder: Add ACPI support.

2015-08-11 Thread Robert Richter
On 11.08.15 13:04:55, David Daney wrote: > >In the future it might be better structured to try and get the OF > >node, and if that fails then try and use the ACPI method to obtain > >these values. > > Our current approach, as you can see in the patch, is the opposite. If ACPI > is being used, pre

Re: [PATCH 2/2] net, thunder, bgx: Add support for ACPI binding.

2015-08-07 Thread Robert Richter
On 07.08.15 10:09:04, Tomasz Nowicki wrote: > On 07.08.2015 02:33, David Daney wrote: ... > >+#else > >+ > >+static int bgx_init_acpi_phy(struct bgx *bgx) > >+{ > >+return -ENODEV; > >+} > >+ > >+#endif /* CONFIG_ACPI */ > >+ > > #if IS_ENABLED(CONFIG_OF_MDIO) > > > > static int bgx_init_of

Re: [PATCH 2/2] net, thunder, bgx: Add support for ACPI binding.

2015-08-07 Thread Robert Richter
On 07.08.15 12:52:41, Tomasz Nowicki wrote: > On 07.08.2015 12:43, Robert Richter wrote: > >On 07.08.15 10:09:04, Tomasz Nowicki wrote: > >>On 07.08.2015 02:33, David Daney wrote: > > > >... > > > >>>+#else > >>>+ > >>>+stat