Page MenuHomeFreeBSD

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

Authored by stevek on Nov 16 2016, 9:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 22 2024, 11:48 AM
Unknown Object (File)
Oct 1 2024, 4:32 PM
Unknown Object (File)
Sep 28 2024, 8:30 PM
Unknown Object (File)
Sep 27 2024, 8:33 PM
Unknown Object (File)
Sep 26 2024, 9:12 AM
Unknown Object (File)
Sep 24 2024, 2:06 PM
Unknown Object (File)
Sep 8 2024, 2:29 AM
Unknown Object (File)
Sep 7 2024, 6:33 PM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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 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.