Page MenuHomeFreeBSD

vtnet: expose features via sysctl tree
Needs ReviewPublic

Authored by tuexen on Thu, Dec 18, 4:16 PM.
Tags
None
Referenced Files
F140009796: D54288.diff
Thu, Dec 18, 11:50 PM
F140004925: D54288.id.diff
Thu, Dec 18, 10:12 PM
F140004306: D54288.id168328.diff
Thu, Dec 18, 9:59 PM
F140003881: D54288.id168328.diff
Thu, Dec 18, 9:51 PM
F140003861: D54288.diff
Thu, Dec 18, 9:50 PM
Subscribers

Details

Summary

This depends on D54286 to express the bit position in a way, that more bits with positions 32 to 64 can be added.
Right now the 64-bit flags field needs to be casted to a 32-bit field, because clang warns if more than 32-bits are used. Once clang is fixed, this restriction will be removed and more bits will be added.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/dev/virtio/network/if_vtnet.c
4409

Can't sbuf_new_for_sysctl() be used here?

sys/dev/virtio/network/if_vtnet.c
4409

Don't know. Let me check...

Use sbuf_new_for_sysctl() as suggested by Mark.

tuexen added inline comments.
sys/dev/virtio/network/if_vtnet.c
4409

Done. Thanks for the suggestion, I did not know about sbuf_new_for_sysctl().