forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/infiniband/core/smi.h
....@@ -67,7 +67,7 @@
6767 {
6868 /* C14-9:3 -- We're at the end of the DR segment of path */
6969 /* C14-9:4 -- Hop Pointer = Hop Count + 1 -> give to SMA/SM */
70
- return ((device->process_mad &&
70
+ return ((device->ops.process_mad &&
7171 !ib_get_smp_direction(smp) &&
7272 (smp->hop_ptr == smp->hop_cnt + 1)) ?
7373 IB_SMI_HANDLE : IB_SMI_DISCARD);
....@@ -82,7 +82,7 @@
8282 {
8383 /* C14-13:3 -- We're at the end of the DR segment of path */
8484 /* C14-13:4 -- Hop Pointer == 0 -> give to SM */
85
- return ((device->process_mad &&
85
+ return ((device->ops.process_mad &&
8686 ib_get_smp_direction(smp) &&
8787 !smp->hop_ptr) ? IB_SMI_HANDLE : IB_SMI_DISCARD);
8888 }