Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1485352
| From | Santosh Shilimkar <santosh.shilimkar@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered |
| Date | 2016-09-16 22:30 +0200 |
| Message-ID | <si7VL-1eB-15@gated-at.bofh.it> (permalink) |
| References | <si6dj-8sO-5@gated-at.bofh.it> <si6dk-8sO-23@gated-at.bofh.it> |
| Organization | Oracle Corporation |
On 9/16/2016 11:31 AM, Knut Omang wrote: > From: Dag Moxnes <dag.moxnes@oracle.com> > > The process_mad function is an optional IB driver entry point > allows a driver to intercept or modify MAD traffic. > > This fix allows MAD traffic to flow down to the device also > when MAD traffic is completely handled by the device and > no process_mad function is provided. > > SIF, the new Oracle Infiniband HCA, is the first HCA > where the device itself makes all decision wrt MAD processing. > Up till now devices either supports MAD, and do then > implement the process_mad entry point, or do not > support MAD at all, and then do not implement process_mad. > > SIF introduces a 3rd case: Supports MAD > but do not terminate any MAD requests in the driver. > This case is not handled well by the current code. > > The problem is that the handle_outgoing_dr_smp function > has an implicit assumption that some packets are handled > by the process_mad function itself. > > There is no way to provide return values from the process_mad > function that ensures that packets are always forwarded to the device, > so the only viable solution without breaking the API > seems to be to not implement process_mad. No SOBs ?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered Knut Omang <knut.omang@oracle.com> - 2016-09-16 20:40 +0200
Re: [PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-09-16 22:30 +0200
Re: [PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered Knut Omang <knut.omang@oracle.com> - 2016-09-16 22:50 +0200
csiph-web