tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pppoe(4) and PPP_TERM_UNKNOWN_SESSIONS



While working on the recent modularization of the pppoe(4) driver, I noticed that the PPP_TERM_UNKNOWN_SESSIONS option really controls very little code. For the modular version of the driver, I turned this code on always, and for both modular and built-in versions, I added a new boolean sysctl variable 'net.pppoe.term_unknown' to actually enable termination of the unknown sessions.

It was suggested on irc/icb that perhaps this code should be included in all versions of the driver, built-in as well as modular, without having to specify 'OPTIONS PPP_TERM_UNKNOWN_SESSSIONS' in the kernel config file. This very easy to do, but there are a couple of caveats that give me slight pause:

1. Compiling in this code adds a few bytes of memory to the softc for
   each pppoe device instance (unit).
2. More importantly, for each received packet, the driver needs to copy
   the source Ethernet address.

#1 doesn't bother me much, but #2 is per-packet performance hit.  It
probably isn't really significant on most platforms, but some embedded systems (or antiquated hardware!) might notice.

So, I soliciting input on whether to retain the config option, or remove the option completely, relying only on the sysctl variable to control session termination.

Comments?



+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+


Home | Main Index | Thread Index | Old Index