Page MenuHomeFreeBSD

iflib: wire up the RSS ioctls
DraftPublic

Authored by nick_spun.io on Tue, Aug 18, 11:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 19, 5:31 PM
Unknown Object (File)
Wed, Aug 19, 8:57 AM
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
shurd
adrian
gallatin
Group Reviewers
iflib
Summary

iflib handled no RSS ioctl, so SIOCGIFRSSKEY and SIOCGIFRSSHASH reached
ether_ioctl() and returned EINVAL for every iflib driver.

Add ifdi_rss_key_get, ifdi_rss_key_set, ifdi_rss_hash_get,
ifdi_rss_table_get and ifdi_rss_table_set, following ifdi_i2c_req: a
generic ioctl behind a driver method defaulting to ENOTSUP. Methods
sharing a signature share one default.

isc_rss_table_size is the authority for the table length, since iflib
already masks flowids with it in QIDX(). Gets clear the caller's buffer
past the interface name.

Signed-off-by: Nick Price <nprice@FreeBSD.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75693
Build 72576: arc lint + arc unit