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

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

Details

Summary

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

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
stevek retitled this revision from to Add accessor functions for the if_hw_tsomax* members of ifnet structure..Nov 16 2016, 9:51 PM
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.