tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pluggable pktq_rps_hash()



Hi,

I implement some of pktq_rps_hash() and make pluggable it for each
interface type such as ether, pppoe, gif, and ipsecif.
Here is the patch
    https://github.com/knakahara/netbsd-src/commit/68a43105b541aec79c6f067e81dbe34ad2282dec

Of course, the default behavior is not changed.  We can change RPS
behavior by "sysctl -w net.{ether,pppoe,gif,ipsecif}.rps_hash=${value}".
Currently, the values are
    - zero : always return 0
    - curcpu : return current cpuid
    - toeplitz : return toeplitz hash value which calculated from mbuf

I think it is easy to add new rps hash functions to the above patch
and to apply the pluggable rps hash function to other interfaces.

Could you comment the patch?


Thanks,

--
//////////////////////////////////////////////////////////////////////
Internet Initiative Japan Inc.

Device Engineering Section,
Product Division,
Technology Unit

Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost>




Home | Main Index | Thread Index | Old Index