diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2018-10-03 15:56:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-03 19:34:52 +0300 |
commit | db3408a150dbe6da5117a25ce9937633166cd604 (patch) | |
tree | 820c9d4a5ee0ae99b04829bc80c0f39e86d51923 /drivers/net/ethernet/chelsio/cxgb4/sched.h | |
parent | 4e6d47206c32d1bbb4931f1d851dae3870e0df81 (diff) | |
download | linux-db3408a150dbe6da5117a25ce9937633166cd604.tar.xz |
cxgb4: remove the unneeded locks
cxgb_set_tx_maxrate will be called holding rtnl lock,
hence remove all unneeded locks.
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/sched.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sched.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sched.h b/drivers/net/ethernet/chelsio/cxgb4/sched.h index 3a49e00a38a1..168fb4ce3759 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sched.h +++ b/drivers/net/ethernet/chelsio/cxgb4/sched.h @@ -69,13 +69,11 @@ struct sched_class { u8 idx; struct ch_sched_params info; struct list_head queue_list; - spinlock_t lock; /* Per class lock */ atomic_t refcnt; }; struct sched_table { /* per port scheduling table */ u8 sched_size; - rwlock_t rw_lock; /* Table lock */ struct sched_class tab[0]; }; |