diff options
author | jhb <jhb@FreeBSD.org> | 2016-12-02 21:29:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-12-02 21:29:52 +0000 |
commit | 62979d8790f72bdc85fa7bbafd8034581f25c61d (patch) | |
tree | 09f1667ea880061468df225cf7108dfca885399d /contrib/diff/src/normal.c | |
parent | 42435a8367c86ff246ab4a7fe35c62dd984626e9 (diff) | |
download | FreeBSD-src-62979d8790f72bdc85fa7bbafd8034581f25c61d.zip FreeBSD-src-62979d8790f72bdc85fa7bbafd8034581f25c61d.tar.gz |
MFC 302339:
cxgbe(4): Changes to the CPL-handler registration mechanism and code
related to "shared" CPLs.
a) Combine t4_set_tcb_field and t4_set_tcb_field_rpl into a single
function. Allow callers to direct the response to any iq. Tidy up
set_ulp_mode_iscsi while there to use names from t4_tcb.h instead of
magic constants.
b) Remove all CPL handler tables from struct adapter. This reduces its
size by around 2KB. All handlers are now registered at MOD_LOAD instead
of attach or some kind of initialization/activation. The registration
functions do not need an adapter parameter any more.
c) Add per-iq handlers to deal with CPLs whose destination cannot be
determined solely from the opcode. There are 2 such CPLs in use right
now: SET_TCB_RPL and L2T_WRITE_RPL. The base driver continues to send
filter and L2T_WRITEs over the mgmtq and solicits the reply on fwq.
t4_tom (including the DDP code) now uses the port's ctrlq to send
L2T_WRITEs and SET_TCB_FIELDs and solicits the reply on an ofld_rxq.
fwq and ofld_rxq have different handlers that know what kind of tid to
expect in the reply. Update t4_write_l2e and callers to to support any
wrq/iq combination.
Sponsored by: Chelsio Communications
Diffstat (limited to 'contrib/diff/src/normal.c')
0 files changed, 0 insertions, 0 deletions