Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Linux kernel up to 3.16 #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions lib/C/kernel/nf2_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,14 @@ static void nf2_get_drvinfo(struct net_device *dev,

}

static int nf2_phys_id(struct net_device *dev, __u32 data)
{
return 0;
}

static const struct ethtool_ops nf2_ethtool_ops = {
.get_settings = nf2_get_settings,
.set_settings = nf2_set_settings,
.get_drvinfo = nf2_get_drvinfo,
.get_link = ethtool_op_get_link,
.phys_id = nf2_phys_id,
};

void nf2_set_ethtool_ops(struct net_device *dev)
{
SET_ETHTOOL_OPS(dev, &nf2_ethtool_ops);
dev->ethtool_ops = &nf2_ethtool_ops;
}