<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/net, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-11-04T12:21:45Z</updated>
<entry>
<title>if_vxlan(4): Check the size of data available in mbuf before using them</title>
<updated>2022-11-04T12:21:45Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei.huang@gmail.com</email>
</author>
<published>2022-09-30T07:55:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a9c3d5de9ac8ae8090881f20c894d3577d97e92a'/>
<id>urn:sha1:a9c3d5de9ac8ae8090881f20c894d3577d97e92a</id>
<content type='text'>
PR:		261711
Reviewed by:	kp
Tested by:	Alfa (burak.sn at outlook.com)
Approved by:    re (gjb), kp (mentor)
Differential Revision:	https://reviews.freebsd.org/D36794

(cherry picked from commit 8707cb19e68128c181477d87f960182c14e15f12)
(cherry picked from commit 639aebb2aa0b72c569f8779e13351d37f7bb17c6)
</content>
</entry>
<entry>
<title>iflib: Allow drivers to determine which queue to TX on</title>
<updated>2022-10-19T22:23:33Z</updated>
<author>
<name>Eric Joyner</name>
<email>erj@FreeBSD.org</email>
</author>
<published>2021-07-29T23:24:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6c717a28505d3e77a0c3780ca1f65eb85b538eb9'/>
<id>urn:sha1:6c717a28505d3e77a0c3780ca1f65eb85b538eb9</id>
<content type='text'>
Adds a new function pointer to struct if_txrx in order to allow
drivers to set their own function that will determine which queue
a packet should be sent on.

Since this includes a kernel ABI change, bump the __FreeBSD_version
as well.

(This motivation behind this is to allow the driver to examine the
UP in the VLAN tag and determine which queue to TX on based on
that, in support of HW TX traffic shaping.)

Signed-off-by: Eric Joyner &lt;erj@FreeBSD.org&gt;

Reviewed by:	kbowling@, stallamr@netapp.com
Tested by:	jeffrey.e.pieper@intel.com
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D31485

(cherry picked from commit 213e91399b7998554d787bb290109ebe602aa279)
</content>
</entry>
<entry>
<title>bpf(3): Grammar fix for a source code comment</title>
<updated>2022-09-07T07:55:12Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2022-09-04T15:30:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0497c62b150baa9c56c17ad647c3d1ce86675f62'/>
<id>urn:sha1:0497c62b150baa9c56c17ad647c3d1ce86675f62</id>
<content type='text'>
- s/that that/that the/

(cherry picked from commit 8a153724cd464e7fb156203dfb1304c90cfaec1c)
</content>
</entry>
<entry>
<title>netisr(9): Fix a typo in a source code comment</title>
<updated>2022-09-06T05:45:26Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2022-09-03T13:04:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ff7bcda252e688fcefa27013fd7aef5a7e3b38e0'/>
<id>urn:sha1:ff7bcda252e688fcefa27013fd7aef5a7e3b38e0</id>
<content type='text'>
- s/overriden/overridden/

(cherry picked from commit 028ecc7aa1a06abdae96ba076189dc973d075042)
</content>
</entry>
<entry>
<title>altq: improve pfctl config time for large numbers of queues</title>
<updated>2022-08-18T07:12:17Z</updated>
<author>
<name>James Skon</name>
<email>jps@rgnets.com</email>
</author>
<published>2022-07-28T19:58:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=51557e24643239b51af3297146c2d2e279ba1c1b'/>
<id>urn:sha1:51557e24643239b51af3297146c2d2e279ba1c1b</id>
<content type='text'>
In the current implementation of altq_hfsc.c, whne new queues are being
added (by pfctl), each queue is added to the tail of the siblings linked
list under the parent queue.

On a system with many queues (50,000+) this leads to very long load
times at the insertion process must scan the entire list for every new
queue,

Since this list is unordered, this changes merely adds the new queue to
the head of the list rather than the tail.

Reviewed by:	kp
MFC after:	3 weeks
Sponsored by:	RG Nets
Differential Revision:	https://reviews.freebsd.org/D35964

(cherry picked from commit 13890d30f8b215b84800cce3f161ad5148c82c00)
</content>
</entry>
<entry>
<title>if_vlan: avoid hash table thrashing when adding and removing entries</title>
<updated>2022-08-05T11:54:32Z</updated>
<author>
<name>David Sips</name>
<email>dsips@netapp.com</email>
</author>
<published>2022-07-22T17:17:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a5f19abeb7191cb3cd89f06ff0eb150b89d6b8bf'/>
<id>urn:sha1:a5f19abeb7191cb3cd89f06ff0eb150b89d6b8bf</id>
<content type='text'>
vlan_remhash() uses incorrect value for b.

When using the default value for VLAN_DEF_HWIDTH (4), the VLAN hash-list table
expands from 16 chains to 32 chains as the 129th entry is added. trunk-&gt;hwidth
becomes 5. Say a few more entries are added and there are now 135 entries.
trunk-hwidth will still be 5. If an entry is removed, vlan_remhash() will
calculate a value of 32 for b. refcnt will be decremented to 134. The if
comparison at line 473 will return true and vlan_growhash() will be called. The
VLAN hash-list table will be compressed from 32 chains wide to 16 chains wide.
hwidth will become 4. This is an error, and it can be seen when a new VLAN is
added. The table will again be expanded. If an entry is then removed, again
the table is contracted.

If the number of VLANS stays in the range of 128-512, each time an insert
follows a remove, the table will expand. Each time a remove follows an
insert, the table will be contracted.

The fix is simple. The line 473 should test that the number of entries has
decreased such that the table should be contracted using what would be the new
value of hwidth. line 467 should be:

	b = 1 &lt;&lt; (trunk-&gt;hwidth - 1);

PR:		265382
Reviewed by:	kp
MFC after:	2 weeks
Sponsored by:	NetApp, Inc.

(cherry picked from commit 151abc80cde778bc18b91c334d07fbd52bbb38fb)
</content>
</entry>
<entry>
<title>Fix unused variable warning in iflib.c</title>
<updated>2022-07-24T11:01:21Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2022-07-21T19:19:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0f99030d35478242a57bc9fdae6bfc732a69dc81'/>
<id>urn:sha1:0f99030d35478242a57bc9fdae6bfc732a69dc81</id>
<content type='text'>
With clang 15, the following -Werror warning is produced:

    sys/net/iflib.c:993:8: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable]
            u_int n;
                  ^

The 'n' variable appears to have been a debugging aid that has never
been used for anything, so remove it.

MFC after:	3 days

(cherry picked from commit 0294e95da4aa272906d4472137b1235d8d8a7180)
</content>
</entry>
<entry>
<title>Fix unused variable warning in if_lagg.c</title>
<updated>2022-07-24T11:01:21Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2022-07-21T18:51:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=459bc065e29bed81bb2e8454252aaeb5792e49d2'/>
<id>urn:sha1:459bc065e29bed81bb2e8454252aaeb5792e49d2</id>
<content type='text'>
With clang 15, the following -Werror warning is produced:

    sys/net/if_lagg.c:2413:6: error: variable 'active_ports' set but not used [-Werror,-Wunused-but-set-variable]
            int active_ports = 0;
                ^

The 'active_ports' variable appears to have been a debugging aid that
has never been used for anything (ref https://reviews.freebsd.org/D549),
so remove it.

MFC after:	3 days

(cherry picked from commit fa267a329ffa3d0e02c3c3a52dd5df5231d92cba)
</content>
</entry>
<entry>
<title>if_llatbl: Fix a typo in a debug statement</title>
<updated>2022-06-10T12:40:56Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2022-06-04T13:22:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21e28d8f1fc997f3610d89c8d174413f4e25563e'/>
<id>urn:sha1:21e28d8f1fc997f3610d89c8d174413f4e25563e</id>
<content type='text'>
- s/droped/dropped/

Obtained from:	NetBSD

(cherry picked from commit 4f493559b0d7853c7521bd3cb5affe659914e479)
</content>
</entry>
<entry>
<title>if_bridge(4): Fix a typo in a source code comment</title>
<updated>2022-06-10T12:40:29Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2022-06-04T09:26:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f3e193dfb252bd64fd2f1fca9c3a15b7d66533f5'/>
<id>urn:sha1:f3e193dfb252bd64fd2f1fca9c3a15b7d66533f5</id>
<content type='text'>
- s/accross/across/

(cherry picked from commit f7faa4ad4844470058b84fa35156c463cfa8bd85)
</content>
</entry>
</feed>
