net: don't clear IFF_XMIT_DST_RELEASE in ether_setup
Subsystems (2)
PATCH 1/1 net: don't clear IFF_XMIT_DST_RELEASE in ether_setup
d88733150 introduced the IFF_SKB_TX_SHARING flag, which I unilaterally set in ether_setup. In doing this I didn't realize that other flags (such as IFF_XMIT_DST_RELEASE) might be set prior to calling the ether_setup routine. This patch changes ether_setup to or in SKB_TX_SHARING so as not to inadvertently clear other existing flags. Thanks to Pekka Riikonen for pointing out my error
--- net/ethernet/eth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ethernet/eth.c +1 -1
@@ -340,7 +340,7 @@ void ether_setup(struct net_device *dev) dev->addr_len =ETH_ALEN ; dev->tx_queue_len =1000 ;/* Ethernet wants good queues */ dev->flags =IFF_BROADCAST |IFF_MULTICAST ; - dev->priv_flags =IFF_TX_SKB_SHARING ; + dev->priv_flags |=IFF_TX_SKB_SHARING ;memset (dev->broadcast,0xFF ,ETH_ALEN );
Signature · 1 line
1.7.6
Quoted 19 lines · Neil Horman
d88733150introduced theIFF_SKB_TX_SHARINGflag, which I unilaterally set inether_setup. In doing this I didn't realize that other flags (such asIFF_XMIT_DST_RELEASE) might be set prior to calling theether_setuproutine. This patch changesether_setupto or inSKB_TX_SHARINGso as not to inadvertently clear other existing flags. Thanks to Pekka Riikonen for pointing out my errorSigned-off-by Neil Horman <[email protected]>Reported-by Pekka Riikonen <[email protected]>CC "David S. Miller" <[email protected]>--- net/ethernet/eth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/ethernet/eth.c +0
-0
net/ethernet/eth.c void ether_setup(struct net_device *dev) · line 346
Quoted 8 lines
net/ethernet/eth.c +1
-1@@ -340,7 +340,7 @@ void ether_setup(struct net_device *dev) dev->addr_len =ETH_ALEN ; dev->tx_queue_len =1000 ;/* Ethernet wants good queues */ dev->flags =IFF_BROADCAST |IFF_MULTICAST ; - dev->priv_flags =IFF_TX_SKB_SHARING ; + dev->priv_flags |=IFF_TX_SKB_SHARING ;memset (dev->broadcast,0xFF ,ETH_ALEN );
I CC Pekka Riikonen <[email protected]>, not sure if he is netdev subscribded.
Quoted 26 lines · Eric Dumazet
Quoted 25 lines · Neil Horman
d88733150introduced theIFF_SKB_TX_SHARINGflag, which I unilaterally set inether_setup. In doing this I didn't realize that other flags (such asIFF_XMIT_DST_RELEASE) might be set prior to calling theether_setuproutine. This patch changesether_setupto or inSKB_TX_SHARINGso as not to inadvertently clear other existing flags. Thanks to Pekka Riikonen for pointing out my errorSigned-off-by Neil Horman <[email protected]>Reported-by Pekka Riikonen <[email protected]>CC "David S. Miller" <[email protected]>--- net/ethernet/eth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/ethernet/eth.c +1
-1@@ -340,7 +340,7 @@ void ether_setup(struct net_device *dev) dev->addr_len =ETH_ALEN ; dev->tx_queue_len =1000 ;/* Ethernet wants good queues */ dev->flags =IFF_BROADCAST |IFF_MULTICAST ; - dev->priv_flags =IFF_TX_SKB_SHARING ; + dev->priv_flags |=IFF_TX_SKB_SHARING ;
Quoted 6 lines
net/ethernet/eth.c void ether_setup(struct net_device *dev) · line 346
Quoted 2 lines
net/ethernet/eth.c +0
-0memset (dev->broadcast,0xFF ,ETH_ALEN );I CC Pekka Riikonen <[email protected]>, not sure if he is netdev subscribded.
Thank you Eric, I didn't check and assumed my config CC'ed Reported-by: emails Neil
Quoted 9 lines
Acked-by Eric Dumazet <[email protected]>--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Neil Horman <[email protected]>
Date: Wed, 14 Sep 2011 09:05:02 -0400
Quoted 9 lines
d88733150introduced theIFF_SKB_TX_SHARINGflag, which I unilaterally set inether_setup. In doing this I didn't realize that other flags (such asIFF_XMIT_DST_RELEASE) might be set prior to calling theether_setuproutine. This patch changesether_setupto or inSKB_TX_SHARINGso as not to inadvertently clear other existing flags. Thanks to Pekka Riikonen for pointing out my errorSigned-off-by Neil Horman <[email protected]>Reported-by Pekka Riikonen <[email protected]>
Applied, thanks Neil.