Skip to content

Netfront accelerator bug fixes

Kieran Mansley xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c drivers/xen/netfront/netfront.c drivers/xen/netfront/netfront.h+118 -60 replies
2/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c drivers/xen/netfront/netfront.c drivers/xen/netfront/netfront.h+538 -5440 replies
3/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c drivers/xen/netfront/netfront.c drivers/xen/netfront/netfront.h+0 -920 replies
4/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c+10 -80 replies
5/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c drivers/xen/netfront/netfront.c drivers/xen/netfront/netfront.h+22 -220 replies
6/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c drivers/xen/netfront/netfront.c drivers/xen/netfront/netfront.h+44 -00 replies
7/8Netfront accelerator bug fixesdrivers/xen/netfront/accel.c drivers/xen/netfront/netfront.h+302 -7780 replies
8/8Netfront accelerator bug fixesdrivers/xen/netfront/netfront.h+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Patch 0/8] Netfront accelerator bug fixes

This patch set fixes a number of bugs in the netfront accelerator architecture that have been brought to light by a recent bout of code review and testing. The majority are minor and self explanatory, but two involve a fair bit of code churn and deserve more explanation.

The first big one (2/8) involves a change to the API for the
accelerators around suspend/resume. Previously netfront would just
pass the xenbus suspend/resume callbacks through to the appropriate accelerator and it would deal with it from there. The bug was that the only sensible action for the accelerator was to unplug itself from netfront, but this was a "per-module" operation rather than a "per- interface" operation like suspend. The fix removes the suspend and resume hooks and instead netfront calls the accelerator's remove and probe hooks on each interface when they are suspended/resumed.

The second big one (7/8) simplifies the locking used in the netfront accelerator. We found a couple of theoretical bugs in the old system and to cut a long story short the best solution seemed to be to simplify it somewhat. A mutex is now used to prevent concurrent load/unload type operations, and as the remaining hooks into the accelerator could neither block nor recurse the kref that was being used was no longer required.

I appreciate that these are a day late for 3.2.0 but as bug fixes that represent a genuine improvement I'd hope they could be included.

Signed-off-by <[email protected]>

Thanks

Kieran