[PATCH] net: thunderx: Fix set_max_bgx_per_node for 81xx rgx

2017-04-13 Thread George Cherian
num_vfs is always calculated as zero. Signed-off-by: George Cherian <george.cher...@cavium.com> --- drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 1 + drivers/net/ethernet/cavium/thunder/thunder_bgx.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/ethernet/cavium/t

[PATCH] ptr_ring: Add barriers to fix NULL-pointer exception

2017-12-06 Thread George Cherian
+0x24/0x28 [35322.773042] Code: d503201f f9400e93 b940e280 91051274 (f9403261) Reported-by: Joseph DeVincentis <joseph.devincen...@cavium.com> Signed-off-by: George Cherian <george.cher...@cavium.com> --- include/linux/ptr_ring.h | 13 + 1 file changed, 13 insertions(+)

Re: [PATCH] ptr_ring: add barriers

2017-12-06 Thread George Cherian
eed to order these reads. It is not the case that producer is reading the value, but the consumer reading stale value. So we need to have a strict rmb in place . Reported-by: George Cherian <george.cher...@cavium.com> Suggested-by: Jason Wang <jasow...@redhat.com> Signed-off-b

Re: [PATCH] ptr_ring: add barriers

2017-12-11 Thread George Cherian
assumption being that producers do not need to read the value so we do not need to order these reads. Reported-by: George Cherian <george.cher...@cavium.com> Suggested-by: Jason Wang <jasow...@redhat.com> Signed-off-by: Michael S. Tsirkin <m...@redhat.com> I'm asked for asking fo