From: Hadar Hen Zion Date: Thu, 19 Dec 2013 19:20:12 +0000 (+0200) Subject: net/mlx4_core: Expose physical port id as PF/VF capability X-Git-Tag: v3.14-rc1~94^2~419^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e1a28e8e6797449dfdfa4739002d1e5939355a8;p=pandora-kernel.git net/mlx4_core: Expose physical port id as PF/VF capability Add the infrastructure needed to support ndo_get_phys_port_id which allows users to identify to which physical port a net-device is connected to by reading a unique port id. This will work for VFs and PFs. The driver uses a new device capability - phys_port_id, The PF driver reads the port phys_port_id from Firmware and stores it. The VF driver reads the port phys_port_id from the PF using QUERY_FUNC_CAP command. Signed-off-by: Hadar Hen Zion Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed