Page MenuHomeFreeBSD

Add accessor functions for the if_hw_tsomax* members of ifnet structure.

Authored by stevek on Nov 16 2016, 9:51 PM.



Add the folowing set accessor functions for recently-added members of ifnet structure:

if_gethwtsomax(), if_sethwtsomax()                 - if_hw_tsomax
if_gethwtsomaxsegcount(), if_sethwtsomaxsegcount() - if_hw_tsomaxsegcount
if_gethwtsomaxsegsize(), if_sethwtsomaxsegsize()   - if_hw_tsomaxsegsize

Update em and vnic drivers which had already been coverted to use accessor
functions for the other ifnet structure members.

Test Plan

This change has been used at Juniper for some time now.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

stevek updated this revision to Diff 22268.Nov 16 2016, 9:51 PM
stevek retitled this revision from to Add accessor functions for the if_hw_tsomax* members of ifnet structure..
stevek updated this object.
stevek edited the test plan for this revision. (Show Details)
stevek added a reviewer: sbruno.
erj accepted this revision.Jan 4 2017, 6:22 PM
erj added a reviewer: erj.
erj added a subscriber: erj.

This matches the existing method for accessing fields in the rest of the if_t api, so I'm okay with it.

This revision is now accepted and ready to land.Jan 4 2017, 6:22 PM
This revision was automatically updated to reflect the committed changes.