]> git.neil.brown.name Git - history.git/commit
NET: Do not use dev->hard_header_len in eth_header()
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 29 Sep 2002 08:00:13 +0000 (03:00 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 29 Sep 2002 08:00:13 +0000 (03:00 -0500)
commit02e0e212f4c1923b0a241830f83d4be55c06e8b0
treefe950a6b407fb8a7c41437836d8cc16f9651f57a
parent3dcf3431c494d4ab5573ab99c0c6327377a77045
NET: Do not use dev->hard_header_len in eth_header()

The actual return value of eth_header() is never used, only its sign.
So it does not make a difference if we return dev->hard_header_len or
ETH_HLEN, but the latter makes more sense as that is the number of bytes
we added to the front of the frame.

For 99% of the drivers, dev->hard_header_len == ETH_HLEN, so no difference
at all, but if a driver actually needs additional headroom and thus
has dev->hard_header_len > ETH_HLEN, the process of building the ethernet
header should not care at all.
net/ethernet/eth.c