Make veth_pool_store detect requested pool changes, close device if
necessary, update pool, and reopen device.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/ibmveth.c | 111 +
1 file changed, 67 insertions(+), 44 deletions(-)
diff --git a/drivers/net
Made struct ibmveth_adapter follow indentation rules
Signed-off-by: Dave Marquardt
Reviewed-by: Michal Swiatkowski
Reviewed-by: Simon Horman
---
drivers/net/ethernet/ibm/ibmveth.h | 64 +++---
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/drivers/net
Added KUnit tests for ibmveth_remove_buffer_from_pool and
ibmveth_rxq_get_buffer under new IBMVETH_KUNIT_TEST config option.
Signed-off-by: Dave Marquardt
Reviewed-by: Simon Horman
---
drivers/net/ethernet/ibm/Kconfig | 13 +++
drivers/net/ethernet/ibm/ibmveth.c | 129
Reset the adapter through new function ibmveth_reset, called in
WARN_ON situations. Removed conflicting and unneeded forward
declaration.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/ibmveth.c | 118 -
drivers/net/ethernet/ibm/ibmveth.h | 1 +
2 files
th_adapter as a separate patch before ibmveth_reset
and WARN_ON changes
v2: Addressed Michal Swiatkowski's review comments
- Split into multiple patches
- Used a more descriptive label
Dave Marquardt (3):
net: ibmveth: Indented struct ibmveth_adapter correctly
net: ibmveth: Reset t
Added KUnit tests for ibmveth_remove_buffer_from_pool and
ibmveth_rxq_get_buffer under new IBMVETH_KUNIT_TEST config option.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/Kconfig | 13 +++
drivers/net/ethernet/ibm/ibmveth.c | 125 +
2 files changed
ski's review comments
- Split into multiple patches
- Used a more descriptive label
Dave Marquardt (3):
net: ibmveth: Indented struct ibmveth_adapter correctly
net: ibmveth: Reset the adapter when unexpected states are detected
net: ibmveth: added KUnit tests for some buffer pool
Made struct ibmveth_adapter follow indentation rules
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/ibmveth.h | 64 +++---
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/drivers/net/ethernet/ibm/ibmveth.h
b/drivers/net/ethernet/ibm/ibmveth.h
Reset the adapter through new function ibmveth_reset, called in
WARN_ON situations. Removed conflicting and unneeded forward
declaration.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/ibmveth.c | 116 -
drivers/net/ethernet/ibm/ibmveth.h | 1 +
2 files
Simon Horman writes:
> On Mon, Apr 14, 2025 at 02:40:15PM -0500, Dave Marquardt wrote:
>> Replaced BUG_ON calls with WARN_ON calls with error handling, with
>> calls to a new ibmveth_reset routine, which resets the device. Removed
>> conflicting and unneeded forward decla
Michal Swiatkowski writes:
> On Thu, Apr 10, 2025 at 01:39:18PM -0500, Dave Marquardt wrote:
>> - Replaced BUG_ON calls with WARN_ON calls with error handling,
>> with calls to a new ibmveth_reset routine, which resets the device.
>> - Added KUnit tests for ibmveth_remove
Added KUnit tests for ibmveth_remove_buffer_from_pool and
ibmveth_rxq_get_buffer under new IBMVETH_KUNIT_TEST config option.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/Kconfig | 13 +++
drivers/net/ethernet/ibm/ibmveth.c | 125 +
2 files changed
Replaced BUG_ON calls with WARN_ON calls with error handling, with
calls to a new ibmveth_reset routine, which resets the device. Removed
conflicting and unneeded forward declaration.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/ibmveth.c | 116
Michal Swiatkowski's comments
- Split into multiple patches
- Used a more descriptive label
*** BLURB HERE ***
Dave Marquardt (2):
net: ibmveth: make ibmveth use WARN_ON instead of BUG_ON
net: ibmveth: added KUnit tests for some buffer pool functions
drivers/net/ethernet/ibm/Kconfig
declaration of ibmveth_rxq_harvest_buffer.
Signed-off-by: Dave Marquardt
---
drivers/net/ethernet/ibm/Kconfig | 13 ++
drivers/net/ethernet/ibm/ibmveth.c | 242 ++---
drivers/net/ethernet/ibm/ibmveth.h | 65
3 files changed, 269 insertions(+), 51 deletions(-)
diff
y result in crashes, deadlocks, or race
conditions. For example, calling napi_disable() multiple times in a
row will deadlock.
In the normal open and close paths, rtnl_mutex is acquired to prevent
other callers. This is missing from veth_pool_store. Use rtnl_mutex in
veth_pool_store fixes these ha
Paolo Abeni writes:
> On 3/31/25 11:23 PM, davem...@linux.ibm.com wrote:
>> From: Dave Marquardt
>>
>> Use rtnl_mutex to synchronize veth_pool_store with itself,
>> ibmveth_close and ibmveth_open, preventing multiple calls in a row to
>> napi_disable.
>
17 matches
Mail list logo