]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
(This commit only touches code within the DEV_NETMAP blocks)
authorLuigi Rizzo <luigi@FreeBSD.org>
Wed, 15 Feb 2012 23:13:29 +0000 (23:13 +0000)
committerLuigi Rizzo <luigi@FreeBSD.org>
Wed, 15 Feb 2012 23:13:29 +0000 (23:13 +0000)
commit5644ccec612ab2b8c38f1752bb75919f86970a27
treeff5d6ba38e3c75e6316b850d0cfb7877385f0bdc
parenta7d022e777918b571b508b3391108a7d874b921c
(This commit only touches code within the DEV_NETMAP blocks)

Introduce some functions to map NIC ring indexes into netmap ring
indexes and vice versa. This way we can implement the bound
checks only in one place (and hopefully in a correct way).

On passing, make the code and comments more uniform across the
various drivers.
sys/dev/e1000/if_em.c
sys/dev/e1000/if_igb.c
sys/dev/e1000/if_lem.c
sys/dev/ixgbe/ixgbe.c
sys/dev/netmap/if_em_netmap.h
sys/dev/netmap/if_igb_netmap.h
sys/dev/netmap/if_lem_netmap.h
sys/dev/netmap/if_re_netmap.h
sys/dev/netmap/ixgbe_netmap.h
sys/dev/netmap/netmap_kern.h