RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-16 Thread Yuval Mintz
> Hi, Yuval > > On 2017/10/15 13:14, Yuval Mintz wrote: > >> Hi, Yuval > >> > >> On 2017/10/13 4:21, Yuval Mintz wrote: > >>>> This patchset adds a new hardware offload type in mqprio before > adding > >>>> mqprio hardware o

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-16 Thread Yuval Mintz
> Hi, Yuval > > On 2017/10/15 13:14, Yuval Mintz wrote: > >> Hi, Yuval > >> > >> On 2017/10/13 4:21, Yuval Mintz wrote: > >>>> This patchset adds a new hardware offload type in mqprio before > adding > >>>> mqprio hardware o

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-15 Thread Yuval Mintz
> > >> This patchset adds a new hardware offload type in mqprio before > adding > > >> mqprio hardware offload support in hns3 driver. Apparently Dave has already acceptedAmirtha's changes to mqprio: https://marc.info/?l=linux-netdev=150803219824053=2 so I guess you need to revise your

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-15 Thread Yuval Mintz
> > >> This patchset adds a new hardware offload type in mqprio before > adding > > >> mqprio hardware offload support in hns3 driver. Apparently Dave has already acceptedAmirtha's changes to mqprio: https://marc.info/?l=linux-netdev=150803219824053=2 so I guess you need to revise your

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-14 Thread Yuval Mintz
> Hi, Yuval > > On 2017/10/13 4:21, Yuval Mintz wrote: > >> This patchset adds a new hardware offload type in mqprio before adding > >> mqprio hardware offload support in hns3 driver. > > > > I think one of the biggest issues in tying this to DCB

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-14 Thread Yuval Mintz
> Hi, Yuval > > On 2017/10/13 4:21, Yuval Mintz wrote: > >> This patchset adds a new hardware offload type in mqprio before adding > >> mqprio hardware offload support in hns3 driver. > > > > I think one of the biggest issues in tying this to DCB

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-12 Thread Yuval Mintz
> This patchset adds a new hardware offload type in mqprio before adding > mqprio hardware offload support in hns3 driver. I think one of the biggest issues in tying this to DCB configuration is the non-immediate [and possibly non persistent] configuration. Scenario #1: User is configuring

RE: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-12 Thread Yuval Mintz
> This patchset adds a new hardware offload type in mqprio before adding > mqprio hardware offload support in hns3 driver. I think one of the biggest issues in tying this to DCB configuration is the non-immediate [and possibly non persistent] configuration. Scenario #1: User is configuring

RE: [PATCH net-next 1/2] mqprio: Add a new hardware offload type in mqprio

2017-10-12 Thread Yuval Mintz
> When a driver supports both dcb and hardware offloaded mqprio, and > user is running mqprio and dcb tool concurrently, the configuration > set by each tool may be conflicted with each other because the dcb (for second 'each') s/each/the > and mqprio may be using the same hardwere offload

RE: [PATCH net-next 1/2] mqprio: Add a new hardware offload type in mqprio

2017-10-12 Thread Yuval Mintz
> When a driver supports both dcb and hardware offloaded mqprio, and > user is running mqprio and dcb tool concurrently, the configuration > set by each tool may be conflicted with each other because the dcb (for second 'each') s/each/the > and mqprio may be using the same hardwere offload

RE: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yuval Mintz
> Hi, Yuval > > On 2017/9/26 14:43, Yuval Mintz wrote: > >> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc > >> is used to tell hclge_dcb module to do the setup. > > > > While this might be a step in the right direction, this causes an

RE: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yuval Mintz
> Hi, Yuval > > On 2017/9/26 14:43, Yuval Mintz wrote: > >> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc > >> is used to tell hclge_dcb module to do the setup. > > > > While this might be a step in the right direction, this causes an

RE: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yuval Mintz
> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc > is used to tell hclge_dcb module to do the setup. While this might be a step in the right direction, this causes an inconsistency in user experience - Some [well, most] vendors didn't allow the mqprio priority mapping to affect

RE: [PATCH v2 net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-26 Thread Yuval Mintz
> When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc > is used to tell hclge_dcb module to do the setup. While this might be a step in the right direction, this causes an inconsistency in user experience - Some [well, most] vendors didn't allow the mqprio priority mapping to affect

RE: [PATCH v2] qed: mark symbols static where possible

2016-09-08 Thread Yuval Mintz
> > > In fact, these functions are only used in the file in which they are > declared and don't need a declaration, but can be made static. > so this patch marks these functions with 'static'. ... > -void qed_get_vport_stats(struct qed_dev *cdev, > - struct qed_eth_stats

RE: [PATCH v2] qed: mark symbols static where possible

2016-09-08 Thread Yuval Mintz
> > > In fact, these functions are only used in the file in which they are > declared and don't need a declaration, but can be made static. > so this patch marks these functions with 'static'. ... > -void qed_get_vport_stats(struct qed_dev *cdev, > - struct qed_eth_stats

RE: [PATCH] qede: mark qede_set_features() static

2016-09-08 Thread Yuval Mintz
ed > a declaration, but can be made static. > so this patch marks this function with 'static'. > > Signed-off-by: Baoyou Xie <baoyou....@linaro.org> Thanks. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com>

RE: [PATCH] qede: mark qede_set_features() static

2016-09-08 Thread Yuval Mintz
ed > a declaration, but can be made static. > so this patch marks this function with 'static'. > > Signed-off-by: Baoyou Xie Thanks. Acked-by: Yuval Mintz

RE: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Yuval Mintz
orruption on some configurations but maybe not on others. O.k., motivation is clear. But this really isn't enforced by the ansi-c standard, right? Anyway, thanks. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com>

RE: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Yuval Mintz
orruption on some configurations but maybe not on others. O.k., motivation is clear. But this really isn't enforced by the ansi-c standard, right? Anyway, thanks. Acked-by: Yuval Mintz

RE: [PATCH] qed: mark symbols static where possible

2016-09-07 Thread Yuval Mintz
> We get a few warnings when building kernel with W=1: > drivers/net/ethernet/qlogic/qed/qed_l2.c:112:5: warning: no previous > prototype for 'qed_sp_vport_start' [-Wmissing-prototypes] > > > In fact, these functions are only used in the file in which they are > declared and don't need a

RE: [PATCH] qed: mark symbols static where possible

2016-09-07 Thread Yuval Mintz
> We get a few warnings when building kernel with W=1: > drivers/net/ethernet/qlogic/qed/qed_l2.c:112:5: warning: no previous > prototype for 'qed_sp_vport_start' [-Wmissing-prototypes] > > > In fact, these functions are only used in the file in which they are > declared and don't need a

RE: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Yuval Mintz
> We get 4 warnings when building kernel with W=1: > drivers/net/ethernet/qlogic/qed/qed_selftest.c:6:5: warning: no previous > prototype for 'qed_selftest_memory' [-Wmissing-prototypes] > drivers/net/ethernet/qlogic/qed/qed_selftest.c:19:5: warning: no previous > prototype for

RE: [PATCH] qed: add missing header dependencies

2016-09-07 Thread Yuval Mintz
> We get 4 warnings when building kernel with W=1: > drivers/net/ethernet/qlogic/qed/qed_selftest.c:6:5: warning: no previous > prototype for 'qed_selftest_memory' [-Wmissing-prototypes] > drivers/net/ethernet/qlogic/qed/qed_selftest.c:19:5: warning: no previous > prototype for

RE: [PATCH] qed: Remove OOM messages

2016-09-04 Thread Yuval Mintz
possible. > > Signed-off-by: Joe Perches <j...@perches.com> Looking good. Thanks Joe. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com>

RE: [PATCH] qed: Remove OOM messages

2016-09-04 Thread Yuval Mintz
le. > > Signed-off-by: Joe Perches Looking good. Thanks Joe. Acked-by: Yuval Mintz

RE: [PATCH] qed: fix kzalloc-simple.cocci warnings

2016-09-01 Thread Yuval Mintz
n' in title [net/net-next]? Or is it good as-is? In case of latter, Acked-by: Yuval Mintz <yuval.mi...@qlogic.com> One question the automated script - Can't it [relative] easily be upgraded to also have 'Fixes:' as part of its message?

RE: [PATCH] qed: fix kzalloc-simple.cocci warnings

2016-09-01 Thread Yuval Mintz
inelle/api/alloc/kzalloc-simple.cocci > > CC: Sudarsana Reddy Kalluru > Signed-off-by: Fengguang Wu This looks fine; But what's the right process here - Dave - do we need to re-post this with the the right 'destination' in title [net/net-next]? Or is it good as-is? In case of latt

RE: [PATCH v2 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-08-15 Thread Yuval Mintz
> Currently the tx channels share same pool of descriptors. Thus one channel can > block another if pool is emptied by one. But, the shaper should decide which > channel is allowed to send packets. To avoid such impact of one channel on > another, let every channel to have its own peace of pool.

RE: [PATCH v2 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-08-15 Thread Yuval Mintz
> Currently the tx channels share same pool of descriptors. Thus one channel can > block another if pool is emptied by one. But, the shaper should decide which > channel is allowed to send packets. To avoid such impact of one channel on > another, let every channel to have its own peace of pool.

RE: [PATCH 04/21] net: thunderx: Set queue count based on number of CPUs

2016-08-11 Thread Yuval Mintz
> 81xx has only 4 CPUs, so it doesn't make sense to initialize entire Qset i.e 8 > queues by default. Made changes to queue initialization to init queues equal > to > number of CPUs or > 8 queues whichever is lesser. Also this will be applicable to VMs with VNIC VF > attached and having less

RE: [PATCH 04/21] net: thunderx: Set queue count based on number of CPUs

2016-08-11 Thread Yuval Mintz
> 81xx has only 4 CPUs, so it doesn't make sense to initialize entire Qset i.e 8 > queues by default. Made changes to queue initialization to init queues equal > to > number of CPUs or > 8 queues whichever is lesser. Also this will be applicable to VMs with VNIC VF > attached and having less

RE: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-11 Thread Yuval Mintz
> +static void netvsc_inject_enable(struct net_device_context > +*net_device_ctx) { > + net_device_ctx->vf_inject = true; > +} > + > +static void netvsc_inject_disable(struct net_device_context > +*net_device_ctx) { > + net_device_ctx->vf_inject = false; > + > + /* Wait for currently

RE: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

2016-08-11 Thread Yuval Mintz
> +static void netvsc_inject_enable(struct net_device_context > +*net_device_ctx) { > + net_device_ctx->vf_inject = true; > +} > + > +static void netvsc_inject_disable(struct net_device_context > +*net_device_ctx) { > + net_device_ctx->vf_inject = false; > + > + /* Wait for currently

RE: [PATCH 1/1] qed: do not use unitialized variable

2016-07-31 Thread Yuval Mintz
> Do not write random bytes from the kernel stack when calling qed_wr. > > Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> Thanks. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com>

RE: [PATCH 1/1] qed: do not use unitialized variable

2016-07-31 Thread Yuval Mintz
> Do not write random bytes from the kernel stack when calling qed_wr. > > Signed-off-by: Heinrich Schuchardt Thanks. Acked-by: Yuval Mintz

RE: [PATCH] qed: Add and use specific logging functions to reduce object size

2016-07-27 Thread Yuval Mintz
> > Current DP_ macros generate a lot of code. > > Using functions with vsprintf extension %pV helps reduce that size. > > Yuval, I used the same KERN_ output types, but it is unusual > that DP_INFO outputs at KERN_NOTICE. > > Was that a copy/paste defect or should it be emitted at KERN_INFO and

RE: [PATCH] qed: Add and use specific logging functions to reduce object size

2016-07-27 Thread Yuval Mintz
> > Current DP_ macros generate a lot of code. > > Using functions with vsprintf extension %pV helps reduce that size. > > Yuval, I used the same KERN_ output types, but it is unusual > that DP_INFO outputs at KERN_NOTICE. > > Was that a copy/paste defect or should it be emitted at KERN_INFO and

RE: [PATCH] qed: Add and use specific logging functions to reduce object size

2016-07-27 Thread Yuval Mintz
> Current DP_ macros generate a lot of code. > Using functions with vsprintf extension %pV helps reduce that size. > > drivers/net/ethernet/qlogic/qed/Makefile | 2 +- > drivers/net/ethernet/qlogic/qed/qed_util.c | 82 > ++ > include/linux/qed/qed_if.h

RE: [PATCH] qed: Add and use specific logging functions to reduce object size

2016-07-27 Thread Yuval Mintz
> Current DP_ macros generate a lot of code. > Using functions with vsprintf extension %pV helps reduce that size. > > drivers/net/ethernet/qlogic/qed/Makefile | 2 +- > drivers/net/ethernet/qlogic/qed/qed_util.c | 82 > ++ > include/linux/qed/qed_if.h

RE: [PATCH v2] qed: fix qed_fill_link() error handling

2016-06-01 Thread Yuval Mintz
; > As discussed, we also use a compile-time check to ensure we never use any of > the VF code if CONFIG_QED_SRIOV is disabled, and the PCI device table is > updated to no longer bind to virtual functions in that configuration. > > Signed-off-by: Arnd Bergmann <a...@arndb.de>

RE: [PATCH v2] qed: fix qed_fill_link() error handling

2016-06-01 Thread Yuval Mintz
; > As discussed, we also use a compile-time check to ensure we never use any of > the VF code if CONFIG_QED_SRIOV is disabled, and the PCI device table is > updated to no longer bind to virtual functions in that configuration. > > Signed-off-by: Arnd Bergmann > > --- > On Wednes

RE: [PATCH] qed: fix qed_fill_link() error handling

2016-06-01 Thread Yuval Mintz
> > > I think we can just remove the IS_ENABLED() check there and define > > > the > > > IS_PF() macro conditionally to become 'true' if CONFIG_QED_SRIOV is > > > not set, like some other drivers do > > > > I think that would be unsafe with current qede - qede currently > > publishes its VFs' PCI

RE: [PATCH] qed: fix qed_fill_link() error handling

2016-06-01 Thread Yuval Mintz
> > > I think we can just remove the IS_ENABLED() check there and define > > > the > > > IS_PF() macro conditionally to become 'true' if CONFIG_QED_SRIOV is > > > not set, like some other drivers do > > > > I think that would be unsafe with current qede - qede currently > > publishes its VFs' PCI

RE: [PATCH] qed: fix qed_fill_link() error handling

2016-06-01 Thread Yuval Mintz
> > I think both solutions are equally valid/elegant. > > > > Arnd? > > I think we can just remove the IS_ENABLED() check there and define the > IS_PF() macro conditionally to become 'true' if CONFIG_QED_SRIOV is not set, > like some other drivers do > > diff --git

RE: [PATCH] qed: fix qed_fill_link() error handling

2016-06-01 Thread Yuval Mintz
> > I think both solutions are equally valid/elegant. > > > > Arnd? > > I think we can just remove the IS_ENABLED() check there and define the > IS_PF() macro conditionally to become 'true' if CONFIG_QED_SRIOV is not set, > like some other drivers do > > diff --git

RE: [PATCH net] bnx2x: avoid leaking memory on bnx2x_init_one() failures

2016-05-31 Thread Yuval Mintz
vfpf_acquire(). > > Signed-off-by: Vitaly Kuznetsov <vkuzn...@redhat.com> Thanks. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com>

RE: [PATCH net] bnx2x: avoid leaking memory on bnx2x_init_one() failures

2016-05-31 Thread Yuval Mintz
vfpf_acquire(). > > Signed-off-by: Vitaly Kuznetsov Thanks. Acked-by: Yuval Mintz

RE: [PATCH] qed: fix qed_fill_link() error handling

2016-05-30 Thread Yuval Mintz
> + if (IS_ENABLED(CONFIG_QED_SRIOV) && !IS_PF(hwfn->cdev)) { > + qed_vf_get_link_params(hwfn, params); > + qed_vf_get_link_state(hwfn, link); > + qed_vf_get_link_caps(hwfn, link_caps); > + > + return 0; > + } The IS_ENABLED here seems a bit

RE: [PATCH] qed: fix qed_fill_link() error handling

2016-05-30 Thread Yuval Mintz
> + if (IS_ENABLED(CONFIG_QED_SRIOV) && !IS_PF(hwfn->cdev)) { > + qed_vf_get_link_params(hwfn, params); > + qed_vf_get_link_state(hwfn, link); > + qed_vf_get_link_caps(hwfn, link_caps); > + > + return 0; > + } The IS_ENABLED here seems a bit

RE: drivers/net/ethernet/qlogic/qed/qed_dcbx.c:210: pointless test ?

2016-05-23 Thread Yuval Mintz
> Hello there, > > drivers/net/ethernet/qlogic/qed/qed_dcbx.c:210:16: warning: comparison is > always false due to limited range of data type [-Wtype-limits] > > Source code is > >if (priority < 0) { > > but > > u8 tc, priority, priority_map; > > > Regards > > David Binderman

RE: drivers/net/ethernet/qlogic/qed/qed_dcbx.c:210: pointless test ?

2016-05-23 Thread Yuval Mintz
> Hello there, > > drivers/net/ethernet/qlogic/qed/qed_dcbx.c:210:16: warning: comparison is > always false due to limited range of data type [-Wtype-limits] > > Source code is > >if (priority < 0) { > > but > > u8 tc, priority, priority_map; > > > Regards > > David Binderman

RE: bnx2x in 4.6rc7 with FW 7.13.1.0 not present

2016-05-09 Thread Yuval Mintz
> Upgrading a system from kernel 4.2 to 4.6rc7, there is an extra 2 minute delay > while booting due to these problems: > > [ 47.977221] bnx2x :04:00.1: Direct firmware load for > bnx2x/bnx2x-e2- > 7.13.1.0.fw failed with error -2 ... > Could the driver fall back to an older firmware

RE: bnx2x in 4.6rc7 with FW 7.13.1.0 not present

2016-05-09 Thread Yuval Mintz
> Upgrading a system from kernel 4.2 to 4.6rc7, there is an extra 2 minute delay > while booting due to these problems: > > [ 47.977221] bnx2x :04:00.1: Direct firmware load for > bnx2x/bnx2x-e2- > 7.13.1.0.fw failed with error -2 ... > Could the driver fall back to an older firmware

RE: [PATCH] qed: initialize return rc to avoid returning garbage

2016-03-29 Thread Yuval Mintz
colin.k...@canonical.com> Thanks Colin. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com>

RE: [PATCH] qed: initialize return rc to avoid returning garbage

2016-03-29 Thread Yuval Mintz
> From: Colin Ian King > > in the case where qed_slowpath_irq_req is not called, rc is not assigned and > so > qed_int_igu_enable will return a garbage value. > Fix this by initializing rc to 0. > > Signed-off-by: Colin Ian King Thanks Colin. Acked-by: Yuval Mintz

Re: [PATCH] bnx2x: add a separate GENEVE Kconfig symbol

2016-02-23 Thread Yuval Mintz
(CONFIG_BNX2X_GENEVE)' [It not a tristate]. But that's truly insignificant. Acked-By: Yuval Mintz <yuval.mi...@qlogic.com>

Re: [PATCH] bnx2x: add a separate GENEVE Kconfig symbol

2016-02-23 Thread Yuval Mintz
X_GENEVE)' [It not a tristate]. But that's truly insignificant. Acked-By: Yuval Mintz

RE: linux-next: build failure after merge of the net-next tree

2016-02-18 Thread Yuval Mintz
> > After merging the net-next tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > In file included from drivers/net/ethernet/broadcom/bnx2x/bnx2x.h:56:0, > > from drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c:30: > >

RE: linux-next: build failure after merge of the net-next tree

2016-02-18 Thread Yuval Mintz
> > After merging the net-next tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > In file included from drivers/net/ethernet/broadcom/bnx2x/bnx2x.h:56:0, > > from drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c:30: > >

RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-12-05 Thread Yuval Mintz
> > Isn't AE_VERSION_1 something fixed once you publish your features? > > If it can't be changed, why not simply remove the features from > > `hw_features' instead of having to implement this ndo? > There could be a case where the feature is supported by the SoC > and therefore it is already part

RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-12-05 Thread Yuval Mintz
> > Isn't AE_VERSION_1 something fixed once you publish your features? > > If it can't be changed, why not simply remove the features from > > `hw_features' instead of having to implement this ndo? > There could be a case where the feature is supported by the SoC > and therefore it is already part

RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-22 Thread Yuval Mintz
> +static netdev_features_t hns_nic_fix_features( > + struct net_device *netdev, netdev_features_t features) { > + struct hns_nic_priv *priv = netdev_priv(netdev); > + > + switch (priv->enet_ver) { > + case AE_VERSION_1: > + features &= ~(NETIF_F_TSO |

RE: [PATCH V3 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-22 Thread Yuval Mintz
> static void hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb) { ... > + /* Set default RSS key and indrection table*/ > + const u32 rss_key[HNS_PPEV2_RSS_KEY_NUM] = { > + 0x6d5a56da, 0x255b0ec2, > + 0x4167253d, 0x43a38fb0, > + 0xd0ca2bcb, 0xae7b30b4, > +

RE: [PATCH V3 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-22 Thread Yuval Mintz
> +void hns_rcbv2_int_ctrl_hw(struct hnae_queue *q, u32 flag, u32 mask) > +{ > + u32 int_mask_en = !!mask; > + > + if (flag & RCB_INT_FLAG_TX) > + dsaf_write_dev(q, RCB_RING_INTMSK_TXWL_REG, > int_mask_en); > + > + if (flag & RCB_INT_FLAG_RX) > +

RE: [PATCH V3 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-22 Thread Yuval Mintz
> +static void hns_ae_set_tso_stats(struct hnae_handle *handle, int > +enable) { > + struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); > + > + hns_ppe_set_tso_enable(ppe_cb, enable); } Style issues? > +void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value) { > +

RE: [PATCH V3 net-next 3/5] net:hns: Add Hip06 "TSO(TCP Segment Offload)" support HNS Driver

2015-11-22 Thread Yuval Mintz
> +static void hns_ae_set_tso_stats(struct hnae_handle *handle, int > +enable) { > + struct hns_ppe_cb *ppe_cb = hns_get_ppe_cb(handle); > + > + hns_ppe_set_tso_enable(ppe_cb, enable); } Style issues? > +void hns_ppe_set_tso_enable(struct hns_ppe_cb *ppe_cb, u32 value) { > +

RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

2015-11-22 Thread Yuval Mintz
> +static netdev_features_t hns_nic_fix_features( > + struct net_device *netdev, netdev_features_t features) { > + struct hns_nic_priv *priv = netdev_priv(netdev); > + > + switch (priv->enet_ver) { > + case AE_VERSION_1: > + features &= ~(NETIF_F_TSO |

RE: [PATCH V3 net-next 1/5] net:hns: Add support of Hip06 SoC to the Hislicon Network Subsystem

2015-11-22 Thread Yuval Mintz
> +void hns_rcbv2_int_ctrl_hw(struct hnae_queue *q, u32 flag, u32 mask) > +{ > + u32 int_mask_en = !!mask; > + > + if (flag & RCB_INT_FLAG_TX) > + dsaf_write_dev(q, RCB_RING_INTMSK_TXWL_REG, > int_mask_en); > + > + if (flag & RCB_INT_FLAG_RX) > +

RE: [PATCH V3 net-next 2/5] net:hns: Add Hip06 "RSS(Receive Side Scaling)" support to HNS Driver

2015-11-22 Thread Yuval Mintz
> static void hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb) { ... > + /* Set default RSS key and indrection table*/ > + const u32 rss_key[HNS_PPEV2_RSS_KEY_NUM] = { > + 0x6d5a56da, 0x255b0ec2, > + 0x4167253d, 0x43a38fb0, > + 0xd0ca2bcb, 0xae7b30b4, > +

RE: [PATCH] bnx2x: use ktime_get_seconds() for timestamp

2015-09-11 Thread Yuval Mintz
> I assume that it is not possible to change the ABI any more, otherwise > we should try to use a 64-bit field. Actually, I did suggest exactly that to our management team, But this was the decided ABI. Acked-by: Yuval Mintz -- To unsubscribe from this list: send the line "unsubs

RE: [PATCH] bnx2x: use ktime_get_seconds() for timestamp

2015-09-11 Thread Yuval Mintz
> I assume that it is not possible to change the ABI any more, otherwise > we should try to use a 64-bit field. Actually, I did suggest exactly that to our management team, But this was the decided ABI. Acked-by: Yuval Mintz <yuval.mi...@qlogic.com> -- To unsubscribe from thi

RE: [PATCH 1/2] bnx2x:Fix error handling in the function bnxc2x_dbcx_set_params

2015-07-19 Thread Yuval Mintz
> I am used to sending out one patch per each fix like this for each function. > If you don't like me doing this I don't when sending patches for your > subsystem(s). I think that would be preferable. > In addition would something like this fix your complains about not fixing > error > handling

RE: [PATCH 1/2] bnx2x:Fix error handling in the function bnxc2x_dbcx_set_params

2015-07-19 Thread Yuval Mintz
> This fixes the error handling in the function bnxc2x_dbcx_params for both > calls > to bnx2x_dcbnl_update_applist by checking if they failed by returning a error > code and if so return immediately to this function's caller due to this > nonrecoverable internal failure. Hi Nicholas, Even

RE: [PATCH 1/2] bnx2x:Fix error handling in the function bnxc2x_dbcx_set_params

2015-07-19 Thread Yuval Mintz
This fixes the error handling in the function bnxc2x_dbcx_params for both calls to bnx2x_dcbnl_update_applist by checking if they failed by returning a error code and if so return immediately to this function's caller due to this nonrecoverable internal failure. Hi Nicholas, Even assuming

RE: [PATCH 1/2] bnx2x:Fix error handling in the function bnxc2x_dbcx_set_params

2015-07-19 Thread Yuval Mintz
I am used to sending out one patch per each fix like this for each function. If you don't like me doing this I don't when sending patches for your subsystem(s). I think that would be preferable. In addition would something like this fix your complains about not fixing error handling in

RE: [bnx2x] Re: Kernel 3.18.11 hangs when inserting netconsle module on a DELL M620 VRTX Blade

2015-04-08 Thread Yuval Mintz
> > I'have installed a new DELL VRTX M620 Blade with kernel 3.18.11. > > After system startup I tried to activate the kernel netconsole with remote > logging enabled. > > > > I executed the following command and the shell I issued it becomes > unresponsive and hangs. > > > > # modprobe netconsole

RE: [bnx2x] Re: Kernel 3.18.11 hangs when inserting netconsle module on a DELL M620 VRTX Blade

2015-04-08 Thread Yuval Mintz
I'have installed a new DELL VRTX M620 Blade with kernel 3.18.11. After system startup I tried to activate the kernel netconsole with remote logging enabled. I executed the following command and the shell I issued it becomes unresponsive and hangs. # modprobe netconsole

RE: randconfig build error with next-20140825, in drivers/net/ethernet/broadcom/bnx2x

2014-08-26 Thread Yuval Mintz
> > Building with the attached random configuration file, > > > > drivers/built-in.o: In function `__bnx2x_remove': > > /home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13409: > > undefined reference to `ptp_clock_unregister' > > drivers/built-in.o: In function

RE: randconfig build error with next-20140825, in drivers/net/ethernet/broadcom/bnx2x

2014-08-26 Thread Yuval Mintz
Building with the attached random configuration file, drivers/built-in.o: In function `__bnx2x_remove': /home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13409: undefined reference to `ptp_clock_unregister' drivers/built-in.o: In function `bnx2x_register_phc':

RE: [PATCH 1/3] driver core: enable drivers to use deferred probe from init

2014-07-28 Thread Yuval Mintz
> On Mon, Jul 28, 2014 at 06:52:48PM +0200, Luis R. Rodriguez wrote: > > On Mon, Jul 28, 2014 at 03:46:32PM +0000, Yuval Mintz wrote: > > > Sorry for not being clear, but I didn't meant 'what guarantees that the > > > device > > > will be added to the deferre

RE: [PATCH 1/3] driver core: enable drivers to use deferred probe from init

2014-07-28 Thread Yuval Mintz
> Subject: Re: [PATCH 1/3] driver core: enable drivers to use deferred probe > from > init > > On Mon, Jul 28, 2014 at 03:12:11PM +0000, Yuval Mintz wrote: > > Perhaps this is a silly question, but what guarantees that the > > deferred probe list will actually

RE: [PATCH 1/3] driver core: enable drivers to use deferred probe from init

2014-07-28 Thread Yuval Mintz
> +static int __driver_probe_device(struct device_driver *drv, struct > +device *dev) { > + if (drv->delay_probe && !dev->init_delayed_probe) { > + dev_info(dev, "Driver %s requests probe deferral on init\n", > + drv->name); > +

RE: [PATCH 1/3] driver core: enable drivers to use deferred probe from init

2014-07-28 Thread Yuval Mintz
+static int __driver_probe_device(struct device_driver *drv, struct +device *dev) { + if (drv-delay_probe !dev-init_delayed_probe) { + dev_info(dev, Driver %s requests probe deferral on init\n, + drv-name); + dev-init_delayed_probe = true; +

RE: [PATCH 1/3] driver core: enable drivers to use deferred probe from init

2014-07-28 Thread Yuval Mintz
Subject: Re: [PATCH 1/3] driver core: enable drivers to use deferred probe from init On Mon, Jul 28, 2014 at 03:12:11PM +, Yuval Mintz wrote: Perhaps this is a silly question, but what guarantees that the deferred probe list will actually be triggered, e.g., in case the delayed

RE: [PATCH 1/3] driver core: enable drivers to use deferred probe from init

2014-07-28 Thread Yuval Mintz
On Mon, Jul 28, 2014 at 06:52:48PM +0200, Luis R. Rodriguez wrote: On Mon, Jul 28, 2014 at 03:46:32PM +, Yuval Mintz wrote: Sorry for not being clear, but I didn't meant 'what guarantees that the device will be added to the deferred probe', but rather what guarantees

RE: [PATCH v2 2/3] net: davinci_mdio: Convert pr_err() to dev_err() call

2014-05-08 Thread Yuval Mintz
> Also, Convert kzalloc to devm_kzalloc. Looks like you should remove this part of the comment. > > Signed-off-by: George Cherian > Reviewed-by: Felipe Balbi > --- > drivers/net/ethernet/ti/davinci_mdio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

RE: [PATCH v2 2/3] net: davinci_mdio: Convert pr_err() to dev_err() call

2014-05-08 Thread Yuval Mintz
Also, Convert kzalloc to devm_kzalloc. Looks like you should remove this part of the comment. Signed-off-by: George Cherian george.cher...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com --- drivers/net/ethernet/ti/davinci_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

RE: bnx2x_sriov.c: Missing switch/case breaks?

2013-12-14 Thread Yuval Mintz
> > > Hi Ariel. > > > > > > I wrote a little checkpatch script to look for missing > > > switch/case breaks. > > > > > > http://www.kernelhub.org/?msg=379933=2 > > > > > > There are _many_ instances of case blocks in sriov.c > > > that could be missing breaks as they use fall-throughs. > > > > > >

RE: bnx2x_sriov.c: Missing switch/case breaks?

2013-12-14 Thread Yuval Mintz
Hi Ariel. I wrote a little checkpatch script to look for missing switch/case breaks. http://www.kernelhub.org/?msg=379933p=2 There are _many_ instances of case blocks in sriov.c that could be missing breaks as they use fall-throughs. It would be good if these are

RE: bnx2x_sriov.c: Missing switch/case breaks?

2013-12-13 Thread Yuval Mintz
> Hi Ariel. > > I wrote a little checkpatch script to look for missing > switch/case breaks. > > http://www.kernelhub.org/?msg=379933=2 > > There are _many_ instances of case blocks in sriov.c > that could be missing breaks as they use fall-throughs. > > It would be good if these are actually

RE: bnx2x_sriov.c: Missing switch/case breaks?

2013-12-13 Thread Yuval Mintz
Hi Ariel. I wrote a little checkpatch script to look for missing switch/case breaks. http://www.kernelhub.org/?msg=379933p=2 There are _many_ instances of case blocks in sriov.c that could be missing breaks as they use fall-throughs. It would be good if these are actually intended

RE: [PATCH] net-bnx2x: Fix byte order problem on NVRAM writes

2013-10-22 Thread Yuval Mintz
> Tested: > ethtool -e eth0 raw on >first.nvram > ethtool -E eth0 ethtool -e eth0 raw on >second.nvram > cmp first.nvram second.nvram || ethtool -E eth0 (No output means pass.) Hi Nate, We're aware of this `bug' for some time - we've encountered it when trying to fix the

RE: [PATCH] net-bnx2x: Fix byte order problem on NVRAM writes

2013-10-22 Thread Yuval Mintz
Tested: ethtool -e eth0 raw on first.nvram ethtool -E eth0 first.nvram ethtool -e eth0 raw on second.nvram cmp first.nvram second.nvram || ethtool -E eth0 second.nvram (No output means pass.) Hi Nate, We're aware of this `bug' for some time - we've encountered it when

RE: [PATCH 1/9] Bnx2x: remove redundant D0 power state set

2013-06-18 Thread Yuval Mintz
Greenstein > Cc: net...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- [...] Acked-by: Yuval Mintz Thanks, Yuval -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ke

RE: [PATCH 1/9] Bnx2x: remove redundant D0 power state set

2013-06-18 Thread Yuval Mintz
...@broadcom.com Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- [...] Acked-by: Yuval Mintz yuval...@broadcom.com Thanks, Yuval -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: linux-next: manual merge of the net-next tree with the net tree

2013-04-28 Thread Yuval Mintz
nctionality from the `net-next' patch which was lost due to the merge. Is `linux-next' the correct tree to send it into? (I couldn't designate it to `net-next' as the merge between `net' and `net-next' hasn't occured yet, thus no collision there) Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior -

Re: linux-next: manual merge of the net-next tree with the net tree

2013-04-28 Thread Yuval Mintz
-next' the correct tree to send it into? (I couldn't designate it to `net-next' as the merge between `net' and `net-next' hasn't occured yet, thus no collision there) Signed-off-by: Yuval Mintz yuval...@broadcom.com Signed-off-by: Ariel Elior ari...@broadcom.com --- drivers/net/ethernet/broadcom

Re: linux-next: manual merge of the pci tree with Linus' tree

2012-09-04 Thread Yuval Mintz
ress > Capability accessors") from the pci tree. > > The former removes the function updated by the latter, so I just removed > the function (see below) and can carry the fix as necessary. Acked-by: Yuval Mintz -- To unsubscribe from this list: send the line "unsubscribe

Re: linux-next: manual merge of the pci tree with Linus' tree

2012-09-04 Thread Yuval Mintz
tree. The former removes the function updated by the latter, so I just removed the function (see below) and can carry the fix as necessary. Acked-by: Yuval Mintz yuval...@broadcom.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

  1   2   >