search for: for_each_net

Displaying 13 results from an estimated 13 matches for "for_each_net".

2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...ypass_lock); >>>>> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >>>>>>> As I wrote the last time, you don't need this list, spinlock. >>>>>>> You can do just something like: >>>>>>> for_each_net(net) { >>>>>>> for_each_netdev(net, dev) { >>>>>>> if (netif_is_bypass_master(dev)) { >>>>>> This function returns the upper netdev as well as the ops associated >>>>>> with that netdev. >>>...
2018 Apr 18
4
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...(&bypass_lock); >> >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> >> > > As I wrote the last time, you don't need this list, spinlock. >> >> > > You can do just something like: >> >> > > for_each_net(net) { >> >> > > for_each_netdev(net, dev) { >> >> > > if (netif_is_bypass_master(dev)) { >> >> > This function returns the upper netdev as well as the ops associated >> >> > with that netdev. >> >> &...
2018 Apr 18
4
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...(&bypass_lock); >> >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> >> > > As I wrote the last time, you don't need this list, spinlock. >> >> > > You can do just something like: >> >> > > for_each_net(net) { >> >> > > for_each_netdev(net, dev) { >> >> > > if (netif_is_bypass_master(dev)) { >> >> > This function returns the upper netdev as well as the ops associated >> >> > with that netdev. >> >> &...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...dev; >> + >> + spin_lock(&bypass_lock); >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> > > As I wrote the last time, you don't need this list, spinlock. >> > > You can do just something like: >> > > for_each_net(net) { >> > > for_each_netdev(net, dev) { >> > > if (netif_is_bypass_master(dev)) { >> > This function returns the upper netdev as well as the ops associated >> > with that netdev. >> > bypass_master_list is a list of 'stru...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...dev; >> + >> + spin_lock(&bypass_lock); >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> > > As I wrote the last time, you don't need this list, spinlock. >> > > You can do just something like: >> > > for_each_net(net) { >> > > for_each_netdev(net, dev) { >> > > if (netif_is_bypass_master(dev)) { >> > This function returns the upper netdev as well as the ops associated >> > with that netdev. >> > bypass_master_list is a list of 'stru...
2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...struct net_device *bypass_netdev; > + > + spin_lock(&bypass_lock); > + list_for_each_entry(bypass_master, &bypass_master_list, list) { >>> As I wrote the last time, you don't need this list, spinlock. >>> You can do just something like: >>> for_each_net(net) { >>> for_each_netdev(net, dev) { >>> if (netif_is_bypass_master(dev)) { >> This function returns the upper netdev as well as the ops associated >> with that netdev. >> bypass_master_list is a list of 'struct bypass_master' that...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...vice *bypass_netdev; >> > + >> > + spin_lock(&bypass_lock); >> > + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> As I wrote the last time, you don't need this list, spinlock. >> You can do just something like: >> for_each_net(net) { >> for_each_netdev(net, dev) { >> if (netif_is_bypass_master(dev)) { > >This function returns the upper netdev as well as the ops associated >with that netdev. >bypass_master_list is a list of 'struct bypass_master' that associates Well, c...
2018 Apr 18
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...vice *bypass_netdev; >> > + >> > + spin_lock(&bypass_lock); >> > + list_for_each_entry(bypass_master, &bypass_master_list, list) { >> As I wrote the last time, you don't need this list, spinlock. >> You can do just something like: >> for_each_net(net) { >> for_each_netdev(net, dev) { >> if (netif_is_bypass_master(dev)) { > >This function returns the upper netdev as well as the ops associated >with that netdev. >bypass_master_list is a list of 'struct bypass_master' that associates Well, c...
2018 Apr 18
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...> + spin_lock(&bypass_lock); > >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { > >> > > As I wrote the last time, you don't need this list, spinlock. > >> > > You can do just something like: > >> > > for_each_net(net) { > >> > > for_each_netdev(net, dev) { > >> > > if (netif_is_bypass_master(dev)) { > >> > This function returns the upper netdev as well as the ops associated > >> > with that netdev. > >> > bypass_master_li...
2018 Apr 11
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...struct bypass_master *bypass_master; >+ struct net_device *bypass_netdev; >+ >+ spin_lock(&bypass_lock); >+ list_for_each_entry(bypass_master, &bypass_master_list, list) { As I wrote the last time, you don't need this list, spinlock. You can do just something like: for_each_net(net) { for_each_netdev(net, dev) { if (netif_is_bypass_master(dev)) { >+ bypass_netdev = rcu_dereference(bypass_master->bypass_netdev); >+ if (ether_addr_equal(bypass_netdev->perm_addr, mac)) { >+ *ops = rcu_dereference(bypass_master->ops); I don't...
2018 Apr 11
2
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...struct bypass_master *bypass_master; >+ struct net_device *bypass_netdev; >+ >+ spin_lock(&bypass_lock); >+ list_for_each_entry(bypass_master, &bypass_master_list, list) { As I wrote the last time, you don't need this list, spinlock. You can do just something like: for_each_net(net) { for_each_netdev(net, dev) { if (netif_is_bypass_master(dev)) { >+ bypass_netdev = rcu_dereference(bypass_master->bypass_netdev); >+ if (ether_addr_equal(bypass_netdev->perm_addr, mac)) { >+ *ops = rcu_dereference(bypass_master->ops); I don't...
2018 Apr 11
0
[RFC PATCH net-next v6 2/4] net: Introduce generic bypass module
...r; >> + struct net_device *bypass_netdev; >> + >> + spin_lock(&bypass_lock); >> + list_for_each_entry(bypass_master, &bypass_master_list, list) { > As I wrote the last time, you don't need this list, spinlock. > You can do just something like: > for_each_net(net) { > for_each_netdev(net, dev) { > if (netif_is_bypass_master(dev)) { This function returns the upper netdev as well as the ops associated with that netdev. bypass_master_list is a list of 'struct bypass_master' that associates 'bypass_netdev' with ...
2018 Apr 10
6
[RFC PATCH net-next v6 0/4] Enable virtio_net to act as a backup for a passthru device
The main motivation for this patch is to enable cloud service providers to provide an accelerated datapath to virtio-net enabled VMs in a transparent manner with no/minimal guest userspace changes. This also enables hypervisor controlled live migration to be supported with VMs that have direct attached SR-IOV VF devices. Patch 1 introduces a new feature bit VIRTIO_NET_F_BACKUP that can be used