LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2018, 11:06 PM   #1
rksyeung
Member
 
Registered: Feb 2018
Posts: 71

Rep: Reputation: Disabled
How to adapt this 10G Network Driver


I've a Intel 10Gbe driver, ixgbe, on a piece of new hardware. It's not connected to any "conventional" PHY via MII. Instead, it's connected to a media converter that converts 10G-KR to XAUI. The 10G-KR is from Intel Xeon processor where the MAC is implemented, while the XAUI is connected to a switch.

The ixgbe seems to have integrated an MDIO driver and will detect this converter, which is not on the supported PHY list.

I was thinking about disabling ixgbe's access to the PHY via MDIO, and instead providing a separate driver to configure this PHY that has vendor specific registers. However, I suspect this won't work, as most likely the network driver ixgbe won't get to link up.

Is there a standard way to do what I need to do here? Do let me know if my description here is unclear.
 
Old 06-13-2018, 04:03 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,152

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Looks like you can define a new instance of struct ixgbe_phy_info and write your own set of ops for accessing it. Then all you need is to add a new patch to the kernel to add support for your phy. Where the phy is assigned (line 295) you need to test for your card and assign your specialized phy.

https://elixir.bootlin.com/linux/lat...e_type.h#L3586
https://elixir.bootlin.com/linux/lat...e_82599.c#L295
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
10G nics not operating at 10G, why? szboardstretcher Linux - Networking 6 06-25-2014 09:42 PM
10G network & performance tuning Ammad Linux - Networking 3 03-10-2014 12:14 PM
[SOLVED] Never installed a driver yet in linux and i just got a EUB9603H long range wifi adapt koolaidwayde Linux - Newbie 3 02-02-2012 12:05 AM
Wish to adapt existing keyboard driver to create new one RevClifford Linux - Laptop and Netbook 1 01-07-2009 04:52 PM
how to install an oracle 10g jdbc driver in eclipse IDE? adilturbo Programming 2 07-23-2007 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration