It's very useful for packet capture applications to be able to increase the interrupt moderation value without recompiling the kernel. SK_JSLOTS should be defined as a function of SK_RX_RING_CNT so that increasing SK_RX_RING_CNT automatically allocates enough jumbo buffers. Fix: The appended context diffs adds a sysctl variable that allows the interrupt moderation value to be changed at run time and also changes the SK_JSLOTS define to calculate its value based on the number of receive descriptors. ==============================================================================
Responsible Changed From-To: gnats-admin->freebsd-bugs Refile this under a proper category.
Responsible Changed From-To: freebsd-bugs->bz Over to bz to evaluate - he touched it last.
State Changed From-To: open->patched Patch comitted to HEAD with minor modifications for up-to-date HEAD. If you can please test.
I built a test system using 5.3-RELEASE. The card I used (a Syskonnect SK-9844 -- a dual SX) had the "no PHY found!" problem until I applied the the dev/mii/mii.c patch found in this bug report: http://www.freebsd.org/cgi/query-pr.cgi?pr=i386/63313 Once I verified the card worked in a stock configuration, I grabbed current versions of if_sk.c (1.102) and if_skreg.h (1.10). BUS_PROBE_DEFAULT is missing in 5.3-RELEASE so I changed the occurances to 0 and then that version compiled and worked. As far as I'm concerned you can close this PR (thanks!) Craig
State Changed From-To: patched->closed Committed to HEAD with if_sk.c rev. 1.101, if_skreg.h rev. 1.27. Manpage updated. Thanks for testing.