[ofa-general] [PATCH 1/2] libibmad: add PortXmtDataSL / PortRcvDataSL support
Sean Hefty
sean.hefty at intel.com
Thu Feb 26 10:13:00 PST 2009
>+MAD_EXPORT uint8_t *port_performance_xmt_sl_query(void *rcvbuf, ib_portid_t *
>dest,
>+ int port, unsigned timeout);
>+MAD_EXPORT uint8_t *port_performance_rcv_sl_query(void *rcvbuf, ib_portid_t *
>dest,
>+ int port, unsigned timeout);
>+MAD_EXPORT uint8_t *port_performance_xmt_sl_reset(void *rcvbuf, ib_portid_t *
>dest,
>+ int port, unsigned mask,
>+ unsigned timeout);
>+MAD_EXPORT uint8_t *port_performance_rcv_sl_reset(void *rcvbuf, ib_portid_t *
>dest,
>+ int port, unsigned mask,
>+ unsigned timeout);
> MAD_EXPORT uint8_t *port_samples_control_query(void *rcvbuf, ib_portid_t *
>dest,
> int port, unsigned timeout);
> MAD_EXPORT uint8_t *port_samples_result_query(void *rcvbuf, ib_portid_t *
>dest,
{snip}
>+uint8_t *port_performance_xmt_sl_query(void *rcvbuf, ib_portid_t * dest, int
>port,
>+ unsigned timeout)
>+{
>+ return pma_query(rcvbuf, dest, port, timeout,
>IB_GSI_PORT_XMIT_DATA_SL);
>+}
>+
>+uint8_t *port_performance_rcv_sl_query(void *rcvbuf, ib_portid_t * dest, int
>port,
>+ unsigned timeout)
>+{
>+ return pma_query(rcvbuf, dest, port, timeout, IB_GSI_PORT_RCV_DATA_SL);
>+}
>+
> uint8_t *port_performance_ext_reset_via(void *rcvbuf, ib_portid_t * dest,
> int port, unsigned mask,
> unsigned timeout, const void *srcport)
>@@ -208,6 +220,20 @@ uint8_t *port_performance_ext_reset(void
> IB_GSI_PORT_COUNTERS_EXT);
> }
>
>+uint8_t *port_performance_xmt_sl_reset(void *rcvbuf, ib_portid_t * dest, int
>port,
>+ unsigned mask, unsigned timeout)
>+{
>+ return performance_reset(rcvbuf, dest, port, mask, timeout,
>+ IB_GSI_PORT_XMIT_DATA_SL);
>+}
>+
>+uint8_t *port_performance_rcv_sl_reset(void *rcvbuf, ib_portid_t * dest, int
>port,
>+ unsigned mask, unsigned timeout)
>+{
>+ return performance_reset(rcvbuf, dest, port, mask, timeout,
>+ IB_GSI_PORT_RCV_DATA_SL);
>+}
>+
Rather than continue to add more and more interfaces to the library, can we just
export a couple of more generic calls?
- Sean
More information about the general
mailing list