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
F81927377: D8544.diff
Tue, Apr 23, 7:39 AM
Unknown Object (File)
Sat, Apr 20, 6:29 AM
Unknown Object (File)
Dec 22 2023, 11:30 PM
Unknown Object (File)
Nov 16 2023, 12:20 PM
Unknown Object (File)
Aug 24 2023, 12:21 AM
Unknown Object (File)
Jul 2 2023, 8:34 AM
Unknown Object (File)
Jul 2 2023, 8:34 AM
Unknown Object (File)
Jul 2 2023, 8:34 AM
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.