linux/drivers/nvme/target
Sagi Grimberg 4c65268588 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>
2018-03-26 08:53:43 -06:00
..
admin-cmd.c nvmet: remove redundant local variable 2017-11-10 19:53:25 -07:00
configfs.c nvmet: make config_item_type const 2017-10-19 16:15:28 +02:00
core.c nvmet: fix PSDT field check in command format 2018-02-28 10:10:22 -07:00
discovery.c nvmet: don't return "any" ip address in discovery log page 2018-03-26 08:53:43 -06:00
fabrics-cmd.c nvmet: lower log level for each queue creation 2018-01-08 11:01:52 +01:00
fc.c nvmet-fc: cleanup nvmet add_port/remove_port 2018-01-08 11:01:56 +01:00
fcloop.c Merge branch 'for-4.16/block' of git://git.kernel.dk/linux-block 2018-01-29 11:51:49 -08:00
io-cmd.c nvmet: Change return code of discard command if not supported 2018-02-14 15:38:59 +02:00
Kconfig nvmet/rdma: Use sgl_alloc() and sgl_free() 2018-01-06 09:18:00 -07:00
loop.c nvmet-loop: use blk_rq_payload_bytes for sgl selection 2018-02-22 01:45:34 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nvmet.h nvmet: don't return "any" ip address in discovery log page 2018-03-26 08:53:43 -06:00
rdma.c nvmet: don't return "any" ip address in discovery log page 2018-03-26 08:53:43 -06:00