Allow setting RX/TX pause frames via ifconfig
Submitted by: Hans Petter Selasky <hps@selasky.org>
Sponsored by: Mellanox Technologies
Paths
| Differential D4817 Authored by markb_mellanox.com on Jan 7 2016, 2:34 PM.
Details Summary Allow setting RX/TX pause frames via ifconfig Submitted by: Hans Petter Selasky <hps@selasky.org>
Diff Detail
Event Timelinemarkb_mellanox.com updated this revision to Diff 11998.Jan 7 2016, 2:34 PM2016-01-07 14:34:52 (UTC+0) markb_mellanox.com retitled this revision from to mlx5en: Allow RX and TX pause frames to be set through ifconfig. markb_mellanox.com updated this object. Herald added a subscriber: imp. · View Herald TranscriptJan 7 2016, 2:34 PM2016-01-07 14:34:53 (UTC+0) Comment Actions I may be misreading this, but it appears we are loosing the ability to set the initial pause state via a loader tunable. Would it be possible to preserve this feature by masking the IFM_ETHER_*PAUSE bits with the user's desired pause sate in the initial ifmedia_set() call? Comment Actions Yes, this patch removes the sysctl way to set RX/TX pause frames. It is possible to have both sysctl and ifconfig. markb_mellanox.com updated this revision to Diff 12311.Jan 14 2016, 1:48 PM2016-01-14 13:48:24 (UTC+0) markb_mellanox.com updated this object. markb_mellanox.com edited edge metadata. Comment ActionsAdd tunnable option This revision is now accepted and ready to land.Jan 14 2016, 8:48 PM2016-01-14 20:48:59 (UTC+0) Closed by commit rS294314: Allow RX and TX pause frames to be set through ifconfig. (authored by • hselasky). · Explain WhyJan 19 2016, 10:10 AM2016-01-19 10:10:29 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 12311 sys/dev/mlx5/mlx5_en/en.h
sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
|
You should check for failure of both fmemopen and au_read_rec.