[patch net-next 06/16] bridge: remove usage of netdev_set_master()

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- net/bridge/br_if.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index e1144e1..5933900 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -148,7 +148,7 @@ static void del_nbp(struct

[patch net-next 02/16] macvlan: add link to upper device

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- drivers/net/macvlan.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 66a9bfe..f5bd8a2 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -765,16 +765,22 @@ int

[patch net-next 06/16] bridge: remove usage of netdev_set_master()

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- net/bridge/br_if.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index e1144e1..5933900 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -148,7 +148,7 @@ static void

[patch net-next 09/16] qlcnic: guard __vlan_find_dev_deep() by rcu_read_lock

2012-08-13 Thread Jiri Pirko
rcu_read_lock was missing here Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index

[patch net-next 02/16] macvlan: add link to upper device

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/net/macvlan.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 66a9bfe..f5bd8a2 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -765,16

[patch net-next 10/16] qeth: ensure that __vlan_find_dev_deep() is called with rcu_read_lock

2012-08-13 Thread Jiri Pirko
Also benefit from rcu_read_lock held and use __in_dev_get_rcu() in ipv4 case. Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/s390/net/qeth_l3_main.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers

[patch net-next 12/16] nes: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/infiniband/hw/nes/nes.c|8 +--- drivers/infiniband/hw/nes/nes_cm.c |2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c index 7140199..e58e9af

[patch net-next 14/16] net: remove no longer used netdev_set_bond_master() and netdev_set_master()

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- include/linux/netdevice.h |6 + net/core/dev.c| 63 - 2 files changed, 1 insertion(+), 68 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e7a07f8

[patch net-next 15/16] net: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- net/core/dev.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index c0f9adb..8977404 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5461,8 +5461,8 @@ static void

[patch net-next 16/16] net: kill dev-master

2012-08-13 Thread Jiri Pirko
Nobody uses this now. Remove it. Signed-off-by: Jiri Pirko j...@resnulli.us --- include/linux/netdevice.h |4 1 file changed, 4 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 757f627..28c5ef0 100644 --- a/include/linux/netdevice.h +++ b/include

[patch net-next 13/16] bonding: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Benefit from new upper dev list and free bonding from dev-master usage. Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/net/bonding/bond_3ad.c | 30 ++--- drivers/net/bonding/bond_alb.c |6 +-- drivers/net/bonding/bond_main.c | 94

[patch net-next 11/16] vlan: remove usage of dev-master in __vlan_find_dev_deep()

2012-08-13 Thread Jiri Pirko
Also, since all users call __vlan_find_dev_deep() with rcu_read_lock, make no possibility to call this with rtnl mutex held only. Signed-off-by: Jiri Pirko j...@resnulli.us --- net/8021q/vlan_core.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/net

[patch net-next 00/16] net: introduce upper device lists and remove dev-master

2012-08-13 Thread Jiri Pirko
appropriate info about l3 addresses. Jiri Pirko (16): net: introduce upper device lists macvlan: add link to upper device vlan: add link to upper device rtnetlink: remove usage of dev-master team: remove usage of netdev_set_master() bridge: remove usage of netdev_set_master() netpoll

[patch net-next 04/16] rtnetlink: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- net/core/rtnetlink.c | 44 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 34d975b..c341eb7 100644 --- a/net/core/rtnetlink.c +++ b/net

[patch net-next 07/16] netpoll: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- net/core/netpoll.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/core/netpoll.c b/net/core/netpoll.c index b4c90e4..5c8e560 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -207,12 +207,16 @@ static

[patch net-next 08/16] cxgb3: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c index

[patch net-next 05/16] team: remove usage of netdev_set_master()

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- drivers/net/team/team.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index ba10c46..0533cbf 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c

[patch net-next 03/16] vlan: add link to upper device

2012-08-13 Thread Jiri Pirko
Signed-off-by: Jiri Pirko j...@resnulli.us --- net/8021q/vlan.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 9096bcb..739665e 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -105,6 +105,8 @@ void

[patch net-next 01/16] net: introduce upper device lists

2012-08-13 Thread Jiri Pirko
. Also, the information stored in lists is used for preventing looping setups like bond-somethingelse-samebond Signed-off-by: Jiri Pirko j...@resnulli.us --- include/linux/netdevice.h | 14 +++ net/core/dev.c| 232 - 2 files changed, 244

Re: [patch net-next 01/16] net: introduce upper device lists

2012-08-13 Thread Jiri Pirko
Mon, Aug 13, 2012 at 07:04:11PM CEST, bhutchi...@solarflare.com wrote: On Mon, 2012-08-13 at 17:27 +0200, Jiri Pirko wrote: This lists are supposed to serve for storing pointers to all upper devices. Eventually it will replace dev-master pointer which is used for bonding, bridge, team

Re: [patch net-next 15/16] net: remove usage of dev-master

2012-08-13 Thread Jiri Pirko
Mon, Aug 13, 2012 at 07:15:31PM CEST, bhutchi...@solarflare.com wrote: On Mon, 2012-08-13 at 17:27 +0200, Jiri Pirko wrote: Signed-off-by: Jiri Pirko j...@resnulli.us --- net/core/dev.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/core/dev.c b/net/core

Re: [RFC v2 2/2] net: Add support for NTB virtual ethernet device

2012-07-30 Thread Jiri Pirko
Mon, Jul 30, 2012 at 08:19:11PM CEST, jon.ma...@intel.com wrote: >On Mon, Jul 30, 2012 at 04:02:16PM +0200, Jiri Pirko wrote: >> Mon, Jul 30, 2012 at 02:26:34AM CEST, jon.ma...@intel.com wrote: >> >+static int __devinit ntb_netdev_probe(struct pci_dev *pdev) >> >+{ >

Re: [RFC v2 2/2] net: Add support for NTB virtual ethernet device

2012-07-30 Thread Jiri Pirko
Mon, Jul 30, 2012 at 02:26:34AM CEST, jon.ma...@intel.com wrote: >+static int __devinit ntb_netdev_probe(struct pci_dev *pdev) >+{ >+ struct net_device *ndev; >+ struct ntb_netdev *dev; >+ int rc; >+ >+ ndev = alloc_etherdev(sizeof(struct ntb_netdev)); >+ if (!ndev) >+

Re: [RFC v2 2/2] net: Add support for NTB virtual ethernet device

2012-07-30 Thread Jiri Pirko
Mon, Jul 30, 2012 at 02:26:34AM CEST, jon.ma...@intel.com wrote: +static int __devinit ntb_netdev_probe(struct pci_dev *pdev) +{ + struct net_device *ndev; + struct ntb_netdev *dev; + int rc; + + ndev = alloc_etherdev(sizeof(struct ntb_netdev)); + if (!ndev) +

Re: [RFC v2 2/2] net: Add support for NTB virtual ethernet device

2012-07-30 Thread Jiri Pirko
Mon, Jul 30, 2012 at 08:19:11PM CEST, jon.ma...@intel.com wrote: On Mon, Jul 30, 2012 at 04:02:16PM +0200, Jiri Pirko wrote: Mon, Jul 30, 2012 at 02:26:34AM CEST, jon.ma...@intel.com wrote: +static int __devinit ntb_netdev_probe(struct pci_dev *pdev) +{ + struct net_device *ndev; + struct

Re: linux-next: build failure after merge of the final tree (net-next tree related)

2012-07-22 Thread Jiri Pirko
Sun, Jul 22, 2012 at 08:34:08AM CEST, s...@canb.auug.org.au wrote: >Hi Dave, > >After merging the final tree, today's linux-next build (powerpc >ppc44x_defconfig) failed like this: > >net/core/rtnetlink.c: In function 'rtnl_fill_ifinfo': >net/core/rtnetlink.c:895:46: error: 'struct net_device' has

Re: linux-next: build failure after merge of the final tree (net-next tree related)

2012-07-22 Thread Jiri Pirko
Sun, Jul 22, 2012 at 08:34:08AM CEST, s...@canb.auug.org.au wrote: Hi Dave, After merging the final tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: net/core/rtnetlink.c: In function 'rtnl_fill_ifinfo': net/core/rtnetlink.c:895:46: error: 'struct net_device' has no

Re: [RFC 2/2] net: Add support for NTB virtual ethernet device

2012-07-14 Thread Jiri Pirko
Sat, Jul 14, 2012 at 07:50:35AM CEST, jon.ma...@intel.com wrote: >On Sat, Jul 14, 2012 at 01:14:03AM +0200, Jiri Pirko wrote: >> Fri, Jul 13, 2012 at 11:45:00PM CEST, jon.ma...@intel.com wrote: >> >A virtual ethernet device that uses the NTB transport API to send/receive >>

Re: [RFC 2/2] net: Add support for NTB virtual ethernet device

2012-07-14 Thread Jiri Pirko
Sat, Jul 14, 2012 at 07:50:35AM CEST, jon.ma...@intel.com wrote: On Sat, Jul 14, 2012 at 01:14:03AM +0200, Jiri Pirko wrote: Fri, Jul 13, 2012 at 11:45:00PM CEST, jon.ma...@intel.com wrote: A virtual ethernet device that uses the NTB transport API to send/receive data. Signed-off-by: Jon

Re: [RFC 2/2] net: Add support for NTB virtual ethernet device

2012-07-13 Thread Jiri Pirko
Fri, Jul 13, 2012 at 11:45:00PM CEST, jon.ma...@intel.com wrote: >A virtual ethernet device that uses the NTB transport API to send/receive data. > >Signed-off-by: Jon Mason >--- > drivers/net/Kconfig |4 + > drivers/net/Makefile |1 + > drivers/net/ntb_netdev.c | 411

Re: [RFC 2/2] net: Add support for NTB virtual ethernet device

2012-07-13 Thread Jiri Pirko
Fri, Jul 13, 2012 at 11:45:00PM CEST, jon.ma...@intel.com wrote: A virtual ethernet device that uses the NTB transport API to send/receive data. Signed-off-by: Jon Mason jon.ma...@intel.com --- drivers/net/Kconfig |4 + drivers/net/Makefile |1 + drivers/net/ntb_netdev.c | 411

<    4   5   6   7   8   9