Remove $FreeBSD$: one-line lua tagRemove /^--\s*\$FreeBSD\$.*$\n/
Move ifconfig SFP status functionality into libifconfiglibifconfig_sfp.h provides an API in libifconfig for querying SFP moduleproperties, operational status, and vendor strings, as well as descri
Move ifconfig SFP status functionality into libifconfiglibifconfig_sfp.h provides an API in libifconfig for querying SFP moduleproperties, operational status, and vendor strings, as well as descriptionsof the various fields, string conversions, and other useful helpers forimplementing user interfaces.SFP module status is obtained by reading registers via an I2C interface.Descriptions of these registers and the values therein have been collectedin a Lua table which is used to generate all the boilerplace C headers andsource files for accessing these values, their names, and descriptions.The generated code is fully commented and readable.This is the first use of libifconfig in ifconfig itself. For now, thescope remains very limited. Over time, more of ifconfig will be replacedwith libifconfig.Some minor changes to the formatting of ifconfig output have been made:- Module memory hex dumps are indented one extra space as a result of usinghexdump(3) instead of a bespoke hex dump function.- Media descriptions have an added two-character short-name in parenthesis.- QSFP modules were incorrectly displaying TX bias current as power. Now TX channels display bias current, and this change has been made for both SFP and QSFP modules for consistency.A Lua binding for libifconfig including this functionality is implementedbut has not been included in this commit. The plan is for it to becommitted after dynamic module loading has been enabled in flua.Reviewed by: kp, melifaroRelnotes: yesDifferential Revision: https://reviews.freebsd.org/D25494
show more ...