RE: [PATCH net/next] bridge:Add rcu read lock when delete br port

2014-08-04 Thread Lichunhe
>-Original Message- >From: Michael S. Tsirkin [mailto:m...@redhat.com] >Sent: Monday, August 04, 2014 8:41 PM >To: Lichunhe >Cc: vyase...@redhat.com; xiyou.wangc...@gmail.com; >makita.toshi...@lab.ntt.co.jp; step...@networkplumber.org; >ebied...@xmission.com; f.fain

[PATCH net/next] bridge:Add rcu read lock when delete br port

2014-08-03 Thread lichunhe
From: Chunhe Li In the br_hanle_frame function has a bug, when the bridge receive packets which go througth the br_handle_frame, get the net_bridge_port pointer "p", but don't check NULL pointer to use it. If somebody delete the bridge port at the same time, will call a NULL pointer, trigger kern

[PATCH net/net-next] bonding:Don't received packets if bonding is not up

2014-08-03 Thread lichunhe
From: Chunhe Li If the bonding device is down, it should not receive packets to network stack or other upper flow stack. Signed-off-by: Chunhe Li --- drivers/net/bonding/bond_main.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/