Here we perhaps see the origin of Okonkwo's entire perception of masculinity and femininity from his father. The third person narrator brings up that his fear was "...of himself, lest he should be found to resemble his father." He goes overboard in his discipline of his household because he does not want any weakness or mercy to come from him, as this would remind him of his father. This is where his view of masculinity comes into play, in how he expects his sons to behave as he does, so as to not raise anyone like his father.
As for femininity, we see that agbala is another name for a woman at this time, and if he associated his father in that way, then it only makes sense that he would see femininity as an extension of his father. So I believe that his thoughts on masculinity and femininity all originate from his father, as much of adolescence in males can be influenced by father figures, for the better or worse. This article makes some good points on this influence:
https://www.psychologytoday.com/blog/the-long-reach-childhood/201106/the-importance-fathers