Detect mounts by mount root, wait for the touchscreen, and default to eth0/eth1
This commit is contained in:
@@ -627,8 +627,10 @@ type config struct {
|
||||
|
||||
func main() {
|
||||
var (
|
||||
aName = flag.String("a", "", "first interface")
|
||||
bName = flag.String("b", "", "second interface")
|
||||
// The names the kernel gives the only two ports built into it, since as
|
||||
// PID 1 there is no udev to rename them and no command line to pass.
|
||||
aName = flag.String("a", "eth0", "first interface")
|
||||
bName = flag.String("b", "eth1", "second interface")
|
||||
sizesArg = flag.String("sizes", "64,128,256,512,1024,1280,1514", "frame sizes in bytes, excluding FCS, cycled per packet")
|
||||
streams = flag.Int("streams", 7, "independent streams per direction, capped by rx rings; each gets its own ethertype, steered by a flow rule to its own rx queue")
|
||||
batch = flag.Int("batch", 64, "frames per sendmmsg/recvmmsg call")
|
||||
@@ -659,15 +661,12 @@ const (
|
||||
func run(aName, bName, sizesArg string,
|
||||
nStreams, batch int, nsPerM float64) error {
|
||||
|
||||
if aName == "" || bName == "" {
|
||||
return fmt.Errorf("both -a and -b are required")
|
||||
}
|
||||
sizes, err := parseSizes(sizesArg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := reportChecks("MOUNTS", mountFilesystems()); err != nil {
|
||||
if err := reportChecks("BOOT", bootstrap()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user