NIC SR-IOV APIs

Modern NICs are strongly encouraged to focus on implementing theswitchdevmodel (seeEthernet switch device driver model (switchdev)) to configure forwarding and security of SR-IOVfunctionality.

Legacy API

The old SR-IOV API is implemented inrtnetlink Netlink family as part oftheRTM_GETLINK andRTM_SETLINK commands. On the driver sideit consists of a number ofndo_set_vf_* andndo_get_vf_* callbacks.

Since the legacy APIs do not integrate well with the rest of the stackthe API is considered frozen; no new functionality or extensionswill be accepted. New drivers should not implement the uncommon callbacks;namely the following callbacks are off limits:

  • ndo_get_vf_port

  • ndo_set_vf_port

  • ndo_set_vf_rss_query_en