IB/hfi1: Rename hdr2sc to hfi1_9B_get_sc5
The function really returned the 5-bit sc value from the header and rhf. hdr2sc didn't quite describe what it did. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Don Hiatt <don.hiatt@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
3ca4fbc84a
commit
aad559c21d
@@ -1312,7 +1312,7 @@ static inline u32 driver_lstate(struct hfi1_pportdata *ppd)
|
||||
void receive_interrupt_work(struct work_struct *work);
|
||||
|
||||
/* extract service channel from header and rhf */
|
||||
static inline int hdr2sc(struct ib_header *hdr, u64 rhf)
|
||||
static inline int hfi1_9B_get_sc5(struct ib_header *hdr, u64 rhf)
|
||||
{
|
||||
return ((be16_to_cpu(hdr->lrh[0]) >> 12) & 0xf) |
|
||||
((!!(rhf_dc_info(rhf))) << 4);
|
||||
|
Reference in New Issue
Block a user