diff options
author | luigi <luigi@FreeBSD.org> | 2012-08-02 11:59:43 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2012-08-02 11:59:43 +0000 |
commit | d1235033a6112f7fb7381e865e7c04b75be24d0e (patch) | |
tree | b8523db838dec58ef47570c5b3b5168a51247b46 /sys/dev/netmap/if_igb_netmap.h | |
parent | 705abad18c0e960f992967ceff1b01218b9423f6 (diff) | |
download | FreeBSD-src-d1235033a6112f7fb7381e865e7c04b75be24d0e.zip FreeBSD-src-d1235033a6112f7fb7381e865e7c04b75be24d0e.tar.gz |
fix some signed/unsigned warnings in the netmap code.
Unfortunately the original drivers still have a lot of
sign conversion/comparison warnings.
Diffstat (limited to 'sys/dev/netmap/if_igb_netmap.h')
-rw-r--r-- | sys/dev/netmap/if_igb_netmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netmap/if_igb_netmap.h b/sys/dev/netmap/if_igb_netmap.h index 8ba13ee..bd83563 100644 --- a/sys/dev/netmap/if_igb_netmap.h +++ b/sys/dev/netmap/if_igb_netmap.h @@ -125,7 +125,7 @@ igb_netmap_txsync(struct ifnet *ifp, u_int ring_nr, int do_lock) u_int j, k, l, n = 0, lim = kring->nkr_num_slots - 1; /* generate an interrupt approximately every half ring */ - int report_frequency = kring->nkr_num_slots >> 1; + u_int report_frequency = kring->nkr_num_slots >> 1; k = ring->cur; if (k > lim) |