OPNSense/src 54cfc12sys/kern kern_mbuf.c uipc_ktls.c, sys/sys mbuf.h

ktls: Propagate EPG_FLAG_ANON to mapped mbufs

Taken from: https://reviews.freebsd.org/D57557
DeltaFile
+3-0sys/kern/kern_mbuf.c
+2-1sys/kern/uipc_ktls.c
+1-0sys/sys/mbuf.h
+6-13 files

OPNSense/src effb6c3sys/dev/igc if_igc.c

Attempt to repair rx issues with the igc driver.

Our testcase uses a link between two igc ports on the same platform and forcing the issue by triggering an eee status update.

Although we found an easy trigger, there are likely other events causing the same issue. This commit replaces igc_if_init() with iflib_request_reset() calls to ensure a rebuild of RX state and publishing descriptor tails.

Setup:

sysctl net.fibs=3
ifconfig igc0 media 1000baseT mediaopt full-duplex
ifconfig igc3 media 1000baseT mediaopt full-duplex
ifconfig igc3 fib 1
ifconfig igc0 inet 10.99.99.1/30 up
ifconfig igc3 inet 10.99.99.2/30 up

test correct:

ping -t 3 -c 2 10.99.99.2


    [8 lines not shown]
DeltaFile
+8-4sys/dev/igc/if_igc.c
+8-41 files

OPNSense/src 75fa38csys/dev/igc if_igc.c

foo
DeltaFile
+2-0sys/dev/igc/if_igc.c
+2-01 files

OPNSense/src 322aabbsys/dev/igc if_igc.c

igc: delay after reset + bigger sequence in eee
DeltaFile
+7-3sys/dev/igc/if_igc.c
+7-31 files

OPNSense/src b9ab9b3sys/dev/igc if_igc.c

foo
DeltaFile
+3-3sys/dev/igc/if_igc.c
+3-31 files

OPNSense/src 4af90b9sys/dev/igc if_igc.c

signle this out
DeltaFile
+1-1sys/dev/igc/if_igc.c
+1-11 files

OPNSense/src 496cf59lib/libpfctl libpfctl.c libpfctl.h, sbin/pfctl pf_print_state.c

pf: expose first rule label for states since rule number is insufficient

PR: https://forum.opnsense.org/index.php?topic=52351.0
DeltaFile
+5-1sbin/pfctl/pf_print_state.c
+1-0lib/libpfctl/libpfctl.c
+1-0lib/libpfctl/libpfctl.h
+1-0sys/netpfil/pf/pf_nl.c
+1-0sys/netpfil/pf/pf_nl.h
+9-15 files

OPNSense/src 55b6fddsys/dev/igc if_igc.c

widen again
DeltaFile
+1-1sys/dev/igc/if_igc.c
+1-11 files

OPNSense/src 4adac63sys/dev/igc if_igc.c

narrow it down, was in previous part
DeltaFile
+1-1sys/dev/igc/if_igc.c
+1-11 files

OPNSense/src b5608a7sys/dev/igc if_igc.c

oxxx
DeltaFile
+1-1sys/dev/igc/if_igc.c
+1-11 files

OPNSense/src a3033cbsys/dev/igc if_igc.c

foo
DeltaFile
+2-2sys/dev/igc/if_igc.c
+2-21 files

OPNSense/src f56e11esys/dev/igc if_igc.c

bisect start
DeltaFile
+2-1sys/dev/igc/if_igc.c
+2-11 files

OPNSense/src b1f7ce3sys/dev/igc if_igc.c

verbatim copy of igc_if_init()
DeltaFile
+70-2sys/dev/igc/if_igc.c
+70-21 files

OPNSense/src 6389542sys/dev/igc if_igc.c

moar
DeltaFile
+2-5sys/dev/igc/if_igc.c
+2-51 files

OPNSense/src f62deaesys/dev/igc if_igc.c

igc: more symmetry with OpenBSD
DeltaFile
+4-0sys/dev/igc/if_igc.c
+4-01 files

OPNSense/src 24171efsys/dev/igc if_igc.c

remove these two
DeltaFile
+0-4sys/dev/igc/if_igc.c
+0-41 files

OPNSense/src 4e1cc18sys/dev/igc if_igc.c if_igc.h

another debug one
DeltaFile
+10-2sys/dev/igc/if_igc.c
+1-1sys/dev/igc/if_igc.h
+11-32 files

OPNSense/src 4584365sys/dev/igc if_igc.c

igc another test
DeltaFile
+3-30sys/dev/igc/if_igc.c
+3-301 files

OPNSense/src 1266f4esys/dev/igc if_igc.c

igc: test 4
DeltaFile
+1-45sys/dev/igc/if_igc.c
+1-451 files

OPNSense/src 890682asys/dev/igc if_igc.c

igc: copy without eee setting
DeltaFile
+70-1sys/dev/igc/if_igc.c
+70-11 files

OPNSense/src be59543sys/dev/igc if_igc.c

next
DeltaFile
+3-2sys/dev/igc/if_igc.c
+3-21 files

OPNSense/src 2d51d62sys/dev/igc if_igc.c

igc: test adding suspend to eee_control path
DeltaFile
+3-0sys/dev/igc/if_igc.c
+3-01 files

OPNSense/src 087c618sys/dev/igc if_igc.c

igc: test adding suspend to eee_control path
DeltaFile
+3-0sys/dev/igc/if_igc.c
+3-01 files

OPNSense/src e4f1976lib/libpfctl libpfctl.c libpfctl.h, sbin/pfctl pf_print_state.c

pf: expose first rule label for states since rule number is insufficient

PR: https://forum.opnsense.org/index.php?topic=52351.0
DeltaFile
+5-1sbin/pfctl/pf_print_state.c
+1-0lib/libpfctl/libpfctl.c
+1-0lib/libpfctl/libpfctl.h
+1-0sys/netpfil/pf/pf_nl.c
+1-0sys/netpfil/pf/pf_nl.h
+9-15 files

OPNSense/src 887b03dlib/libpfctl libpfctl.c libpfctl.h, sbin/pfctl pf_print_state.c

pf: test rule label export for states

PR: https://forum.opnsense.org/index.php?topic=52351.0
DeltaFile
+5-1sbin/pfctl/pf_print_state.c
+1-0sys/netpfil/pf/pf_nl.c
+1-0lib/libpfctl/libpfctl.c
+1-0lib/libpfctl/libpfctl.h
+1-0sys/netpfil/pf/pf_nl.h
+9-15 files

OPNSense/src 973d13flib/libpfctl libpfctl.c libpfctl.h, sbin/pfctl pf_print_state.c

pf: test rule label export for states

PR: https://forum.opnsense.org/index.php?topic=52351.0
DeltaFile
+5-1sbin/pfctl/pf_print_state.c
+2-0sys/netpfil/pf/pf_nl.c
+1-0lib/libpfctl/libpfctl.c
+1-0lib/libpfctl/libpfctl.h
+1-0sys/netpfil/pf/pf_nl.h
+10-15 files

OPNSense/src 139c0d2lib/libpfctl libpfctl.c libpfctl.h, sbin/pfctl pf_print_state.c

pf: test rule label export for states

PR: https://forum.opnsense.org/index.php?topic=52351.0
DeltaFile
+5-1sbin/pfctl/pf_print_state.c
+1-0lib/libpfctl/libpfctl.c
+1-0sys/netpfil/pf/pf_nl.c
+1-0sys/netpfil/pf/pf_nl.h
+1-0lib/libpfctl/libpfctl.h
+9-15 files

OPNSense/src f760315sys/dev/usb usb_pf.c

usb: bpfattach() before if_attach()

PR: https://github.com/opnsense/src/issues/285
DeltaFile
+3-3sys/dev/usb/usb_pf.c
+3-31 files

OPNSense/src 12334a5sys/netinet ip_output.c ip_var.h, sys/netinet6 ip6_output.c ip6_var.h

pf: pf_route() "dst" no longer holds the gateway in 15.x #294

Adjust a little more to accomodate af/naf magic later.

While here also make ip6_get_fwdtag() arguments const.
DeltaFile
+16-8sys/netpfil/pf/pf.c
+1-1sys/netinet/ip_output.c
+1-1sys/netinet/ip_var.h
+1-1sys/netinet6/ip6_output.c
+1-1sys/netinet6/ip6_var.h
+20-125 files

OPNSense/src 5ad8042sys/netpfil/pf pf.c

pf: a small touchup on shared forwarding code

The issue I see with pf_route() is that it has become a bit uncontrollable
in outcome since 15 with many edge cases and overlaps such as TTL decrement
before sending, dummynet back and forth and af/naf translations.  Ideally,
it should be rewritten and aligned with the network stack instead of still
using the OpenBSD way of firing the packets from here.

Shared forwarding is 10 years old now, never considered upstream, but would
have helped structure this code much better by forcing a natural flow through
the stack.
DeltaFile
+10-6sys/netpfil/pf/pf.c
+10-61 files