377
378
379
380static int bpq_open(struct net_device *dev)
381{
382 netif_start_queue(dev);
383 return 0;
384}
385
386static int bpq_close(struct net_device *dev)
387{
388 netif_stop_queue(dev);
389 return 0;
390}
391
392
393
394
395
396
397
398
399static void *bpq_seq_start(struct seq_file *seq, loff_t *pos)
400{
401 int i = 1;
402 struct bpqdev *bpqdev;
403
404 rcu_read_lock();
405
406 if (*pos == 0)
407 return SEQ_START_TOKEN;
408
409 list_for_each_entry_rcu(bpqdev, &bpq_devices, bpq_list) {
410 if (i == *pos)
411 return bpqdev;
412 }
413 return NULL;
414}
415
416static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos)
417{