summaryrefslogtreecommitdiff
path: root/drivers/amba
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-01-24 20:27:10 +0200
committerJens Axboe <axboe@kernel.dk>2018-03-26 08:53:43 -0600
commit4c65268588102014837b2d09e5a02557e5d3fc9e (patch)
tree2778e3f03905f2b14faf5bf3df397c6be7719936 /drivers/amba
parenta470143fc83924251647143ff042bd2843e296cf (diff)
nvmet: don't return "any" ip address in discovery log page
Its perfectly valid to assign a nvmet port to listen on "any" IP address (traddr 0.0.0.0 for ipv4 address family) for IP based transport ports. However, we must not return this address in discovery log entries. Instead we need to return the address where the request was accepted on (req->port address). Since this is nvme transport specific, introduce an optional .disc_traddr interface that is designed to check that a port in question is bound to "any" IP address and if so, set the traddr from the port where the request came from. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions