diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2013-01-08 02:02:19 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2013-01-08 02:02:19 +0000 |
| commit | 7b14cdd71cba0675af95601796ceb3ecfa3a5763 (patch) | |
| tree | e550bec232143922aa7b11d1c7358b1851ba3dae /sys/dev/cxgbe | |
| parent | 17ae0e8c27f9b472fefd546f4ee6a3f67758cc00 (diff) | |
Notes
Diffstat (limited to 'sys/dev/cxgbe')
| -rw-r--r-- | sys/dev/cxgbe/t4_l2t.c | 4 | ||||
| -rw-r--r-- | sys/dev/cxgbe/t4_main.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/cxgbe/t4_l2t.c b/sys/dev/cxgbe/t4_l2t.c index 6476b9b5ecc8..dd8748edbac9 100644 --- a/sys/dev/cxgbe/t4_l2t.c +++ b/sys/dev/cxgbe/t4_l2t.c @@ -149,7 +149,7 @@ t4_l2t_alloc_switching(struct l2t_data *d) { struct l2t_entry *e; - rw_rlock(&d->lock); + rw_wlock(&d->lock); e = t4_alloc_l2e(d); if (e) { mtx_lock(&e->lock); /* avoid race with t4_l2t_free */ @@ -157,7 +157,7 @@ t4_l2t_alloc_switching(struct l2t_data *d) atomic_store_rel_int(&e->refcnt, 1); mtx_unlock(&e->lock); } - rw_runlock(&d->lock); + rw_wunlock(&d->lock); return e; } diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index ff8063e73abf..a3fb6392d8a7 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -371,6 +371,7 @@ struct t4_pciids { {0x4408, "Chelsio T420-CX"}, {0x4409, "Chelsio T420-BT"}, {0x440a, "Chelsio T404-BT"}, + {0x440e, "Chelsio T440-LP-CR"}, }; #ifdef TCP_OFFLOAD |
