forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/infiniband/core/opa_smi.h
....@@ -55,7 +55,7 @@
5555 {
5656 /* C14-9:3 -- We're at the end of the DR segment of path */
5757 /* C14-9:4 -- Hop Pointer = Hop Count + 1 -> give to SMA/SM */
58
- return (device->process_mad &&
58
+ return (device->ops.process_mad &&
5959 !opa_get_smp_direction(smp) &&
6060 (smp->hop_ptr == smp->hop_cnt + 1)) ?
6161 IB_SMI_HANDLE : IB_SMI_DISCARD;
....@@ -70,7 +70,7 @@
7070 {
7171 /* C14-13:3 -- We're at the end of the DR segment of path */
7272 /* C14-13:4 -- Hop Pointer == 0 -> give to SM */
73
- return (device->process_mad &&
73
+ return (device->ops.process_mad &&
7474 opa_get_smp_direction(smp) &&
7575 !smp->hop_ptr) ? IB_SMI_HANDLE : IB_SMI_DISCARD;
7676 }