net: thunderx: Fix for crash while BGX teardown
net: thunderx: Fix for crash while BGX teardown

Cortina phy does not have kernel driver and we don't attach
device with phy layer for intefaces like XFI, XLAUI etc,
Hence check for interface type before calling disconnect.

Signed-off-by: Thanneeru Srinivasulu <47c0937c5eee9764930cc88736b4ed0c94b96905@caviumnetworks.com>
Signed-off-by: Aleksey Makarov <91e0fd38ce4163e19f18fb8586c2effc7a08c173@caviumnetworks.com>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs