On Wed, 12 Sep 2007, Stephen Hemminger wrote:
-/* Check for lost IRQ once a second */
+static void sky2_rx_check(struct net_device *dev)
+{
+ struct sky2_port *sky2 = netdev_priv(dev);
+ struct sky2_hw *hw = sky2-hw;
+ unsigned port = sky2-port;
+ unsigned rxq =
On Mon, 5 Feb 2007, David Miller wrote:
Let's audit NF_CT_STAT_INC() usage to make sure :-)
net/netfilter/nf_conntrack_core.c:
destroy_conntrack: Inside write_{lock,unlock}_bh().
death_by_timeout: Ditto.
__nf_conntrack_find: Inside read_{lock,unlock}_bh() via callers.
On Sat, 2006-11-25 at 18:31 -0800, dean gaudet wrote:
but there's no gratuitous arp for any eth0:N aliased interfaces... and the
cisco ARP cache on this ISP router seems to be set to a long timeout. i
could reach eth0:N from local net, but couldn't get outside local net from
eth0:N.
On Tue, 2006-08-29 at 11:22 -0700, Stephen Hemminger wrote:
Probably, you should do atomic_inc_and_test() here and restart lookup,
if it fails.
Alexey
atomic_inc_and_test is true iff result is zero, so that won't work.
Wouldn't atomic_inc_not_zero() do what you want?
--
/Martin
On Sat, 2006-07-29 at 03:40 +0200, Patrick McHardy wrote:
Martin Josefsson wrote:
As a somewhat related note, I've just digged a bit through RCU land,
talked to dipankar and mckenney, and discovered that rcu_read_lock() /
rcu_read_unlock() aren't strictly needed in softirqs since preempt
On Fri, 2006-07-28 at 00:58 +0200, Patrick McHardy wrote:
+int fib_rules_lookup(struct fib_rules_ops *ops, struct flowi *fl,
+int flags, struct fib_lookup_arg *arg)
+{
+ struct fib_rule *rule;
+ int err;
+
+ rcu_read_lock();
+
+ list_for_each_entry(rule,
On Wed, 2006-07-19 at 14:57 -0700, Stephen Hemminger wrote:
This should fix the problem reported in
http://bugzilla.kernel.org/show_bug.cgi?id=6186
where the skb is used after freed. The code in IP multicast route.
Code was reusing an skb which could lead to use after free or double free.
Currently the e1000 driver only supplies the active link speed / duplex
when a link-beat is present to ethtool. This patch adds support for
supplying the configured speed / duplex when auto-negotiation is
disabled and no link-beat is present.
Signed-off-by: Martin Josefsson [EMAIL PROTECTED
On Wed, 3 Aug 2005, Daniel Phillips wrote:
Hi,
Here is a preliminary patch, not tested at all, just to give everybody a
target to aim bricks at.
* A new __GFP_MEMALLOC flag gives access to the memalloc reserve.
* In dev_alloc_skb, if GFP_ATOMIC fails then try again with