[ofiwg] prov/util/util_av.c: customization

Jeff Squyres (jsquyres) jsquyres at cisco.com
Mon Feb 15 14:48:30 PST 2016


Sean --

We're looking through the prov/util provider, and trying to see how it can be used with the usnic provider.

One area we're poking through is prov/util/util_av.c.  We'd like to use that functionality, but we have our own functionality that we need to layer on top of that.  Specifically:

1. if you try to av_insert() a peer IP address that you can't reach, return -FI_EHOSTUNREACH
2. obtain the next-hop MAC address for the peer

Both steps #1 and #2 can take some time to figure out (e.g., #1 is a libnl query; #2 is an ioctl to query the ARP table); it takes a little bit of doing to properly fork these off into the background for an FI_EVENT-based AV.

What is the expected integration model -- can we add some hooks (i.e., opns-like function pointers) into util_av.c?  Or is it expected that the "real" provider will wrap the util_av functionality behind its own?

It doesn't look like util_av.c initiates any asynchronous operations, so that probably makes integration a little easier (even in the FI_EVENT case).

It looks like the udp provider wholly uses the util_av functionality; it doesn't give any clues as to the intended integration model.

-- 
Jeff Squyres
jsquyres at cisco.com
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/



More information about the ofiwg mailing list